X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetworkconfig.h;h=e656239ba87d5571692efd4eefda04119e3d2a74;hp=4f26531970acf8ceaa9aaf5ed8caf7fd4f8874d9;hb=cc6e7c08709c4e761e2fd9c2e322751015497003;hpb=08adbf35b56f8ce8cf3a8edf614aa0c67061e60f diff --git a/src/core/corenetworkconfig.h b/src/core/corenetworkconfig.h index 4f265319..e656239b 100644 --- a/src/core/corenetworkconfig.h +++ b/src/core/corenetworkconfig.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,34 +15,31 @@ * 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 CORENETWORKCONFIG_H_ -#define CORENETWORKCONFIG_H_ +#pragma once #include "networkconfig.h" class CoreSession; -class CoreNetworkConfig : public NetworkConfig { - Q_OBJECT +class CoreNetworkConfig : public NetworkConfig +{ + Q_OBJECT public: - CoreNetworkConfig(const QString &objectName, CoreSession *parent); + CoreNetworkConfig(const QString& objectName, CoreSession* parent); - inline virtual const QMetaObject *syncMetaObject() const { return &NetworkConfig::staticMetaObject; } - - void save(); + void save(); public slots: - virtual inline void requestSetPingTimeoutEnabled(bool enabled) { setPingTimeoutEnabled(enabled); } - virtual inline void requestSetPingInterval(int interval) { setPingInterval(interval); } - virtual inline void requestSetMaxPingCount(int count) { setMaxPingCount(count); } - virtual inline void requestSetAutoWhoEnabled(bool enabled) { setAutoWhoEnabled(enabled); } - virtual inline void requestSetAutoWhoInterval(int interval) { setAutoWhoInterval(interval); } - virtual inline void requestSetAutoWhoNickLimit(int nickLimit) { setAutoWhoNickLimit(nickLimit); } - virtual inline void requestSetAutoWhoDelay(int delay) { setAutoWhoDelay(delay); } + inline void requestSetPingTimeoutEnabled(bool enabled) override { setPingTimeoutEnabled(enabled); } + inline void requestSetPingInterval(int interval) override { setPingInterval(interval); } + inline void requestSetMaxPingCount(int count) override { setMaxPingCount(count); } + inline void requestSetAutoWhoEnabled(bool enabled) override { setAutoWhoEnabled(enabled); } + inline void requestSetAutoWhoInterval(int interval) override { setAutoWhoInterval(interval); } + inline void requestSetAutoWhoNickLimit(int nickLimit) override { setAutoWhoNickLimit(nickLimit); } + inline void requestSetAutoWhoDelay(int delay) override { setAutoWhoDelay(delay); } + inline void requestSetStandardCtcp(bool enabled) override { setStandardCtcp(enabled); } }; - -#endif