]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/MainView.h
Prefer HTTPS for URLS without a protocol.
[PrivacyBrowserPC.git] / src / MainView.h
index f08975eb6f061375e8a75264df2a08267a56145b..4509c66cf52efaf8aec13cd0f3fbf2f14cefccc1 100644 (file)
@@ -20,9 +20,6 @@
 #ifndef MAINVIEW_H
 #define MAINVIEW_H
 
-// Application headers.
-#include "UserAgentHelper.h"
-
 // Qt framework headers.
 #include <QPushButton>
 #include <QWebEngineHistory>
@@ -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