X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fviews%2FBrowserView.h;h=859a93f2ee27c6c0d72e69497461d16236a39e49;hb=588db73b94af7b596b0e532f4557aa8b6c41f5c3;hp=fb60f038cd46f0f5fd3073874beadfe4c252c9fb;hpb=9b6cee96126484925bec4f4ab30c2b880df687fe;p=PrivacyBrowserPC.git diff --git a/src/views/BrowserView.h b/src/views/BrowserView.h index fb60f03..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,7 +76,7 @@ signals: public Q_SLOTS: // The public slots. - void addCookieToStore(QNetworkCookie cookie) const; + void addCookieToStore(QNetworkCookie &cookie) const; void applyApplicationSettings(); void applyDomainSettingsAndReload(); void applyDomainSettingsWithoutReloading(const QString &hostname); @@ -78,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; @@ -88,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; @@ -97,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;