X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetworkconfig.h;h=e656239ba87d5571692efd4eefda04119e3d2a74;hp=88aa227964c2024201606b12e1b12333e7fdf327;hb=edc55b1f86cf613a332eeeb5d85537a54120dfa5;hpb=f6b9eeda207d42c99fc3e9085631722cf2ec83dc diff --git a/src/core/corenetworkconfig.h b/src/core/corenetworkconfig.h index 88aa2279..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,35 +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 { - SYNCABLE_OBJECT - 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