/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2016 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#ifndef NETWORKSSETTINGSPAGE_H
#define NETWORKSSETTINGSPAGE_H
-#include <QPixmap>
+#include <QIcon>
#include "network.h"
#include "settingspage.h"
CertIdentity *_cid;
#endif
- QPixmap connectedIcon, connectingIcon, disconnectedIcon;
+ QIcon connectedIcon, connectingIcon, disconnectedIcon;
void reset();
bool testHasChanged();
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;
private slots:
void on_host_textChanged();
+ /**
+ * 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::ServerEditDlg ui;
};