/***************************************************************************
- * 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 *
* 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