+ IdentityId defaultIdentity() const;
+
+ /**
+ * Update the SASL settings interface according to the given SASL state
+ *
+ * @param[in] saslStatus Current status of SASL support.
+ */
+ void setSASLStatus(const CapSupportStatus saslStatus);
+};
+
+
+class NetworkAddDlg : public QDialog
+{
+ Q_OBJECT
+
+public:
+ NetworkAddDlg(const QStringList &existing = QStringList(), QWidget *parent = 0);
+
+ NetworkInfo networkInfo() const;
+
+private slots:
+ void setButtonStates();
+
+ /**
+ * Update the default server port according to isChecked
+ *
+ * Connect with useSSL->toggled() in order to keep the port number in sync. This only modifies
+ * the port if it's not been changed from defaults.
+ *
+ * @param isChecked If true and port unchanged, set port to 6697, else set port to 6667.
+ */
+ void updateSslPort(bool isChecked);
+
+private:
+ Ui::NetworkAddDlg ui;
+
+ QStringList existing;