- void on_hostName_textChanged(const QString &);
- void on_accountName_textChanged(const QString &);
- void on_user_textChanged(const QString &);
+ void on_hostName_textChanged(const QString&);
+ void on_accountName_textChanged(const QString&);
+ void on_user_textChanged(const QString&);
+ void on_radioButtonManualProxy_toggled(bool checked);
+
+ void setWidgetStates();
+
+private:
+ Ui::CoreAccountEditDlg ui;
+ CoreAccount _account;
+ enum ProxyType
+ {
+ NoProxy,
+ SystemProxy,
+ ManualProxy
+ };
+};
+
+// ========================================
+// FilteredCoreAccountModel
+// ========================================
+
+//! This filters out the internal account from the non-monolithic client's UI
+class FilteredCoreAccountModel : public QSortFilterProxyModel
+{
+ Q_OBJECT
+
+public:
+ FilteredCoreAccountModel(CoreAccountModel* model, QObject* parent = nullptr);