]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/MainView.h
Add on-the-fly settings.
[PrivacyBrowserPC.git] / src / MainView.h
index 4509c66cf52efaf8aec13cd0f3fbf2f14cefccc1..506d0be27fe26ef6febd61e350980f21f9e7b3b4 100644 (file)
@@ -39,16 +39,21 @@ public:
     explicit MainView(QWidget *parent);
 
 signals:
-    // Define the signals.
+    // The signals.
     void linkHovered(const QString &linkUrl) const;
+    void userAgentUpdated(const QString &userAgent) const;
+    void searchEngineUpdated(const QString &searchEngine) const;
 
 public Q_SLOTS:
-    // Define the public slots.
-    void applyApplicationSettings() const;
+    // The public slots.
+    void applyApplicationSettings();
     void applyDomainSettingsAndReload() const;
+    void applyDomainSettingsWithoutReloading() const;
+    void applyOnTheFlySearchEngine(QAction *searchEngineActionPointer);
+    void applyOnTheFlyUserAgent(QAction *userAgentActionPointer) const;
 
 private Q_SLOTS:
-    // Define the private slots.
+    // The private slots.
     void goHome() const;
     void loadUrlFromTextBox(QString urlFromUser) const;
     void pageLinkHovered(const QString &linkUrl) const;
@@ -56,17 +61,18 @@ private Q_SLOTS:
     void updateInterface() const;
 
 private:
-    // Define the private variables.
+    // The private variables.
     QPushButton *backButtonPointer;
     QPushButton *forwardButtonPointer;
     QPushButton *javaScriptButtonPointer;
+    QString searchEngineUrl;
     KLineEdit *urlLineEditPointer;
     QWebEngineHistory *webEngineHistoryPointer;
     QWebEngineProfile *webEngineProfilePointer;
     QWebEngineSettings *webEngineSettingsPointer;
     QWebEngineView *webEngineViewPointer;
 
-    // Define the private functions.
+    // The private functions.
     void applyDomainSettings(bool reloadWebsite) const;
 };
 #endif