X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fviews%2FBrowserView.h;h=859a93f2ee27c6c0d72e69497461d16236a39e49;hp=0a88a2ca0788dc96f51601fa0e664619c806380a;hb=588db73b94af7b596b0e532f4557aa8b6c41f5c3;hpb=8933c941521c591a962034ecf3486c9143bf1f80 diff --git a/src/views/BrowserView.h b/src/views/BrowserView.h index 0a88a2c..859a93f 100644 --- a/src/views/BrowserView.h +++ b/src/views/BrowserView.h @@ -20,10 +20,13 @@ #ifndef BROWSERVIEW_H #define BROWSERVIEW_H +// Application headers. +#include "structs/PrivacyWebEngine.h" + // KDE Framework headers. #include -// Qt framework headers. +// Qt toolkit headers. #include #include #include @@ -45,8 +48,9 @@ public: // The public functions. void applyOnTheFlyZoomFactor(const double &zoomFactor); void loadInitialWebsite(); + void toggleDomStorage() const; void toggleJavaScript() const; - void toggleLocalStorage() const; + void toggleLocalStorage(); // The public static variables. static QString webEngineDefaultUserAgent; @@ -54,11 +58,13 @@ public: signals: // The signals. void addCookie(const QNetworkCookie &cookie) const; + void removeCookie(const QNetworkCookie &cookie) const; void clearUrlLineEditFocus() const; void hideProgressBar() const; void linkHovered(const QString &linkUrl) const; void showProgressBar(const int &progress) const; void updateBackAction(const bool &isEnabled) const; + void updateDomStorageAction(const bool &isEnabled) const; void updateDomainSettingsIndicator(const bool &status, const QString &domainSettingsDomain) const; void updateForwardAction(const bool &isEnabled) const; void updateJavaScriptAction(const bool &isEnabled) const; @@ -70,6 +76,7 @@ signals: public Q_SLOTS: // The public slots. + void addCookieToStore(QNetworkCookie &cookie) const; void applyApplicationSettings(); void applyDomainSettingsAndReload(); void applyDomainSettingsWithoutReloading(const QString &hostname); @@ -77,6 +84,7 @@ public Q_SLOTS: void applyOnTheFlyUserAgent(QAction *userAgentActionPointer) const; void back() const; void deleteAllCookies() const; + void deleteCookieFromStore(const QNetworkCookie &cookie) const; void forward() const; void home() const; void loadUrlFromLineEdit(QString url) const; @@ -87,6 +95,7 @@ public Q_SLOTS: private Q_SLOTS: // The private slots. void cookieAdded(const QNetworkCookie &cookie) const; + void cookieRemoved(const QNetworkCookie &cookie) const; void loadFinished() const; void loadProgress(const int &progress) const; void loadStarted() const; @@ -96,6 +105,8 @@ private Q_SLOTS: private: // The private variables. double currentZoomFactor; // This can be removed once has been resolved. + PrivacyWebEngine *currentPrivacyWebEnginePointer; + QList *privacyWebEngineListPointer; QString searchEngineUrl; QWebEngineCookieStore *webEngineCookieStorePointer; QWebEngineHistory *webEngineHistoryPointer;