]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/dialogs/DomainSettingsDialog.h
Add User Agent to Domain Settings.
[PrivacyBrowserPC.git] / src / dialogs / DomainSettingsDialog.h
index 3ae50b567ac14d710e40324fea0252666bc4f2c5..6acfcb57e9d0cb8720ff12b3d19bb4784b0f90a1 100644 (file)
@@ -25,6 +25,7 @@
 
 // Qt toolkit headers.
 #include <QDialog>
+#include <QLabel>
 #include <QtSql>
 
 class DomainSettingsDialog : public QDialog
@@ -36,6 +37,9 @@ public:
     // The primary constructor.
     explicit DomainSettingsDialog(QWidget *parent = nullptr);
 
+signals:
+    void domainSettingsUpdated() const;
+
 private Q_SLOTS:
     // The private slots.
     void apply() const;
@@ -47,11 +51,9 @@ private Q_SLOTS:
     void reset() const;
     void showAddMessageBox();
     void showDeleteMessageBox() const;
+    void userAgentChanged(const QString updatedUserAgent) const;
 
 private:
-    // The private functions.
-    void updateUi() const;
-
     // The private variables.
     QPushButton *applyButtonPointer;
     QPushButton *deleteDomainButtonPointer;
@@ -60,6 +62,14 @@ private:
     QWidget *domainSettingsWidgetPointer;
     QSqlTableModel *domainsTableModelPointer;
     QComboBox *javaScriptComboBoxPointer;
+    QLabel *javaScriptLabelPointer;
     QPushButton *resetButtonPointer;
+    QComboBox *userAgentComboBoxPointer;
+    QLabel *userAgentLabelPointer;
+
+    // The private functions.
+    void populateJavaScriptLabel() const;
+    void populateUserAgentLabel(const QString &userAgentName) const;
+    void updateUi() const;
 };
 #endif