common: Simplify SyncableObject macros and usage
[quassel.git] / src / core / corenetworkconfig.h
index 8d75829..4b08a58 100644 (file)
@@ -18,8 +18,7 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef CORENETWORKCONFIG_H_
-#define CORENETWORKCONFIG_H_
+#pragma once
 
 #include "networkconfig.h"
 
@@ -27,14 +26,11 @@ class CoreSession;
 
 class CoreNetworkConfig : public NetworkConfig
 {
-    SYNCABLE_OBJECT
-        Q_OBJECT
+    Q_OBJECT
 
 public:
     CoreNetworkConfig(const QString &objectName, CoreSession *parent);
 
-    inline virtual const QMetaObject *syncMetaObject() const { return &NetworkConfig::staticMetaObject; }
-
     void save();
 
 public slots:
@@ -47,6 +43,3 @@ public slots:
     virtual inline void requestSetAutoWhoDelay(int delay) { setAutoWhoDelay(delay); }
     virtual inline void requestSetStandardCtcp(bool enabled) { setStandardCtcp(enabled); }
 };
-
-
-#endif