X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwindows%2FBrowserWindow.h;h=9e5ecfe2858c09def25dd2c5ee5429841216faef;hb=730c65f4a8c48df65ed0fcd8ddfbbc9bcfda0c1f;hp=e4eee69a012b28324069c4c72f4a0f1649b9f0ec;hpb=cca335d6b9751fbf0e87daa5f122a1b8770488c8;p=PrivacyBrowserPC.git diff --git a/src/windows/BrowserWindow.h b/src/windows/BrowserWindow.h index e4eee69..9e5ecfe 100644 --- a/src/windows/BrowserWindow.h +++ b/src/windows/BrowserWindow.h @@ -31,6 +31,9 @@ #include #include +// C++ headers. +#include + class BrowserWindow : public KXmlGuiWindow { // Include the Q_OBJECT macro. @@ -45,22 +48,28 @@ public: private Q_SLOTS: // The private slots. + void addCookieToList(const QNetworkCookie &newCookie) const; void addOrEditDomainSettings() const; void back() const; + void clearUrlLineEditFocus() const; void fileNew() const; void forward() const; void getZoomFactorFromUser(); void home() const; void loadUrlFromLineEdit(const QString &url) const; + void openCookiesDialog(); void openDomainSettings() const; void refresh() const; + void removeCookieFromList(const QNetworkCookie &cookie) const; void settingsConfigure(); void showProgressBar(const int &progress) const; + void toggleDomStorage() const; void toggleJavaScript() const; void toggleLocalStorage() const; + void updateDomStorageAction(const bool &isEnabled) const; void updateDomainSettingsIndicator(const bool &status, const QString &domainSettingsDomain); - void updateJavaScriptAction(const bool &isEnabled) const; - void updateLocalStorageAction(const bool &isEnabled) const; + void updateJavaScriptAction(const bool &isEnabled); + void updateLocalStorageAction(const bool &isEnabled); void updateSearchEngineActions(const QString &searchEngine) const; void updateUserAgentActions(const QString &userAgent) const; void updateZoomFactorAction(const double &zoomFactor); @@ -72,16 +81,21 @@ private: // The private variables. BrowserView *browserViewPointer; KConfigDialog *configDialogPointer; + std::list *cookieListPointer; + QAction *cookiesActionPointer; QString currentDomainSettingsDomain; QUrl currentUrl; double currentZoomFactor; - QAction *domainSettingsActionPointer; + QAction *domStorageActionPointer; QPalette domainSettingsPalette; QAction *javaScriptActionPointer; + bool javaScriptEnabled; QAction *localStorageActionPointer; + bool localStorageEnabled; QPalette noDomainSettingsPalette; QProgressBar *progressBarPointer; QLabel *searchEngineLabelPointer; + QAction *searchEngineMenuActionPointer; QAction *searchEngineMojeekActionPointer; QAction *searchEngineMonoclesActionPointer; QAction *searchEngineMetagerActionPointer; @@ -90,7 +104,9 @@ private: QAction *searchEngineYahooActionPointer; QAction *searchEngineCustomActionPointer; QLabel *userAgentLabelPointer; + QAction *userAgentMenuActionPointer; QAction *userAgentPrivacyBrowserActionPointer; + QAction *userAgentWebEngineDefaultActionPointer; QAction *userAgentFirefoxLinuxActionPointer; QAction *userAgentChromiumLinuxActionPointer; QAction *userAgentFirefoxWindowsActionPointer;