modernize: Reformat ALL the source... again!
[quassel.git] / src / common / networkconfig.cpp
index 066988f..eb78966 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2013 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  *
 
 #include "networkconfig.h"
 
-INIT_SYNCABLE_OBJECT(NetworkConfig)
-NetworkConfig::NetworkConfig(const QString &objectName, QObject *parent)
-    : SyncableObject(objectName, parent),
-    _pingTimeoutEnabled(true),
-    _pingInterval(30),
-    _maxPingCount(6),
-    _autoWhoEnabled(true),
-    _autoWhoInterval(90),
-    _autoWhoNickLimit(200),
-    _autoWhoDelay(5),
-    _standardCtcp(false)
-{
-}
-
+NetworkConfig::NetworkConfig(const QString& objectName, QObject* parent)
+    : SyncableObject(objectName, parent)
+{}
 
 void NetworkConfig::setPingTimeoutEnabled(bool enabled)
 {
@@ -45,7 +34,6 @@ void NetworkConfig::setPingTimeoutEnabled(bool enabled)
     emit pingTimeoutEnabledSet(enabled);
 }
 
-
 void NetworkConfig::setPingInterval(int interval)
 {
     if (_pingInterval == interval)
@@ -56,7 +44,6 @@ void NetworkConfig::setPingInterval(int interval)
     emit pingIntervalSet(interval);
 }
 
-
 void NetworkConfig::setMaxPingCount(int count)
 {
     if (_maxPingCount == count)
@@ -66,7 +53,6 @@ void NetworkConfig::setMaxPingCount(int count)
     SYNC(ARG(count))
 }
 
-
 void NetworkConfig::setAutoWhoEnabled(bool enabled)
 {
     if (_autoWhoEnabled == enabled)
@@ -77,7 +63,6 @@ void NetworkConfig::setAutoWhoEnabled(bool enabled)
     emit autoWhoEnabledSet(enabled);
 }
 
-
 void NetworkConfig::setAutoWhoInterval(int interval)
 {
     if (_autoWhoInterval == interval)
@@ -88,7 +73,6 @@ void NetworkConfig::setAutoWhoInterval(int interval)
     emit autoWhoIntervalSet(interval);
 }
 
-
 void NetworkConfig::setAutoWhoNickLimit(int nickLimit)
 {
     if (_autoWhoNickLimit == nickLimit)
@@ -98,7 +82,6 @@ void NetworkConfig::setAutoWhoNickLimit(int nickLimit)
     SYNC(ARG(nickLimit))
 }
 
-
 void NetworkConfig::setAutoWhoDelay(int delay)
 {
     if (_autoWhoDelay == delay)
@@ -109,7 +92,6 @@ void NetworkConfig::setAutoWhoDelay(int delay)
     emit autoWhoDelaySet(delay);
 }
 
-
 void NetworkConfig::setStandardCtcp(bool enabled)
 {
     if (_standardCtcp == enabled)