X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fviews%2FBrowserView.h;h=b256ec253c4d7bff353817bca34a59a2f232090c;hb=ab3422aabe802b11f4ddf32df6a2a33e1fff9c96;hp=fb60f038cd46f0f5fd3073874beadfe4c252c9fb;hpb=9b6cee96126484925bec4f4ab30c2b880df687fe;p=PrivacyBrowserPC.git diff --git a/src/views/BrowserView.h b/src/views/BrowserView.h index fb60f03..b256ec2 100644 --- a/src/views/BrowserView.h +++ b/src/views/BrowserView.h @@ -20,11 +20,15 @@ #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 #include #include @@ -45,8 +49,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,18 +59,21 @@ public: signals: // The signals. void addCookie(const QNetworkCookie &cookie) const; + void removeCookie(const QNetworkCookie &cookie) const; void clearUrlLineEditFocus() const; + void fullScreenRequested(const bool toggleOn) 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; void updateLocalStorageAction(const bool &isEnabled) const; - void updateSearchEngineActions(const QString &searchEngine) const; + void updateSearchEngineActions(const QString &searchEngine, const bool &updateCustomSearchEngineStatus) const; void updateUrlLineEdit(const QUrl &newUrl) const; - void updateUserAgentActions(const QString &userAgent) const; + void updateUserAgentActions(const QString &userAgent, const bool &updateCustomUserAgentStatus) const; void updateZoomFactorAction(const double &zoomFactor) const; public Q_SLOTS: @@ -78,6 +86,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 +97,8 @@ public Q_SLOTS: private Q_SLOTS: // The private slots. void cookieAdded(const QNetworkCookie &cookie) const; + void cookieRemoved(const QNetworkCookie &cookie) const; + void fullScreenRequested(QWebEngineFullScreenRequest fullScreenRequest) const; void loadFinished() const; void loadProgress(const int &progress) const; void loadStarted() const; @@ -97,6 +108,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;