X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fdialogs%2FDomainSettingsDialog.h;h=6acfcb57e9d0cb8720ff12b3d19bb4784b0f90a1;hp=3ae50b567ac14d710e40324fea0252666bc4f2c5;hb=fe9f5cdee9e6e16eac1858f7f661516c24f71fa5;hpb=30f550d27093a50e541e57b6e04b77983c7acbb3 diff --git a/src/dialogs/DomainSettingsDialog.h b/src/dialogs/DomainSettingsDialog.h index 3ae50b5..6acfcb5 100644 --- a/src/dialogs/DomainSettingsDialog.h +++ b/src/dialogs/DomainSettingsDialog.h @@ -25,6 +25,7 @@ // Qt toolkit headers. #include +#include #include 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