X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsimplenetworkeditor.h;h=8436b10e41ce2b0c3d104f653fc01f51836ba7c5;hb=8c6448c2e0048389fbac9e2e9daf22b5b050d5b6;hp=d413060930e580c2513b7d44c50b3bd832b12b79;hpb=da86ee7178494e6e5404887ddac98d5e107cc747;p=quassel.git diff --git a/src/qtui/simplenetworkeditor.h b/src/qtui/simplenetworkeditor.h index d4130609..8436b10e 100644 --- a/src/qtui/simplenetworkeditor.h +++ b/src/qtui/simplenetworkeditor.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,46 +15,47 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef SIMPLENETWORKEDITOR_H #define SIMPLENETWORKEDITOR_H -#include "ui_simplenetworkeditor.h" - #include "network.h" -class SimpleNetworkEditor : public QWidget { - Q_OBJECT +#include "ui_simplenetworkeditor.h" + +class SimpleNetworkEditor : public QWidget +{ + Q_OBJECT public: - SimpleNetworkEditor(QWidget *parent = 0); + SimpleNetworkEditor(QWidget* parent = nullptr); - void displayNetworkInfo(const NetworkInfo &networkInfo); - void saveToNetworkInfo(NetworkInfo &networkInfo); + void displayNetworkInfo(const NetworkInfo& networkInfo); + void saveToNetworkInfo(NetworkInfo& networkInfo); - QStringList defaultChannels() const; - void setDefaultChannels(const QStringList &channels); + QStringList defaultChannels() const; + void setDefaultChannels(const QStringList& channels); signals: - void widgetHasChanged(); + void widgetHasChanged(); private slots: - // code duplication from settingspages/networkssettingspage.{h|cpp} - void on_serverList_itemSelectionChanged(); - void on_addServer_clicked(); - void on_deleteServer_clicked(); - void on_editServer_clicked(); - void on_upServer_clicked(); - void on_downServer_clicked(); + // code duplication from settingspages/networkssettingspage.{h|cpp} + void on_serverList_itemSelectionChanged(); + void on_addServer_clicked(); + void on_deleteServer_clicked(); + void on_editServer_clicked(); + void on_upServer_clicked(); + void on_downServer_clicked(); - void setWidgetStates(); + void setWidgetStates(); private: - Ui::SimpleNetworkEditor ui; + Ui::SimpleNetworkEditor ui; - NetworkInfo _networkInfo; + NetworkInfo _networkInfo; }; -#endif //SIMPLENETWORKEDITOR_H +#endif // SIMPLENETWORKEDITOR_H