X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2FMainView.h;h=4509c66cf52efaf8aec13cd0f3fbf2f14cefccc1;hp=f08975eb6f061375e8a75264df2a08267a56145b;hb=d37c965b5cc545db8845756ff2e059fd20a54869;hpb=11099c7bee4fc11fc1b59e67b322a502b616c2b4 diff --git a/src/MainView.h b/src/MainView.h index f08975e..4509c66 100644 --- a/src/MainView.h +++ b/src/MainView.h @@ -20,9 +20,6 @@ #ifndef MAINVIEW_H #define MAINVIEW_H -// Application headers. -#include "UserAgentHelper.h" - // Qt framework headers. #include #include @@ -43,20 +40,20 @@ public: signals: // Define the signals. - void linkHovered(const QString &linkUrl); + void linkHovered(const QString &linkUrl) const; public Q_SLOTS: // Define the public slots. - void applyApplicationSettings(); - void applyDomainSettingsAndReload(); + void applyApplicationSettings() const; + void applyDomainSettingsAndReload() const; private Q_SLOTS: // Define the private slots. - void goHome(); - void loadUrl(const QString &urlFromUser); - void pageLinkHovered(const QString &linkUrl); - void toggleJavaScript(); - void updateInterface(); + void goHome() const; + void loadUrlFromTextBox(QString urlFromUser) const; + void pageLinkHovered(const QString &linkUrl) const; + void toggleJavaScript() const; + void updateInterface() const; private: // Define the private variables. @@ -68,9 +65,8 @@ private: QWebEngineProfile *webEngineProfilePointer; QWebEngineSettings *webEngineSettingsPointer; QWebEngineView *webEngineViewPointer; - UserAgentHelper *userAgentHelperPointer; // Define the private functions. - void applyDomainSettings(bool reloadWebsite); + void applyDomainSettings(bool reloadWebsite) const; }; #endif