X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fnetworkconfig.h;h=5f234f5569dc7d4fc39bf0c2f45ac0385aed7089;hb=3e63cb8a6e83765069a45101b86ae9e21dcc57ad;hp=c1a0f907f50feba1ee8c094b5a12229bbbc00186;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b;p=quassel.git diff --git a/src/common/networkconfig.h b/src/common/networkconfig.h index c1a0f907..5f234f55 100644 --- a/src/common/networkconfig.h +++ b/src/common/networkconfig.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 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 * @@ -18,15 +18,14 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef NETWORKCONFIG_H_ -#define NETWORKCONFIG_H_ +#pragma once #include "syncableobject.h" class NetworkConfig : public SyncableObject { - SYNCABLE_OBJECT Q_OBJECT + SYNCABLE_OBJECT Q_PROPERTY(bool pingTimeoutEnabled READ pingTimeoutEnabled WRITE setPingTimeoutEnabled) Q_PROPERTY(int pingInterval READ pingInterval WRITE setPingInterval) @@ -38,9 +37,7 @@ class NetworkConfig : public SyncableObject Q_PROPERTY(bool standardCtcp READ standardCtcp WRITE setStandardCtcp) public : - NetworkConfig(const QString &objectName = "GlobalNetworkConfig", QObject *parent = 0); - - inline virtual const QMetaObject *syncMetaObject() const { return &staticMetaObject; } + NetworkConfig(const QString &objectName = "GlobalNetworkConfig", QObject *parent = 0); public slots: inline bool pingTimeoutEnabled() const { return _pingTimeoutEnabled; } @@ -105,6 +102,3 @@ private: bool _standardCtcp; }; - - -#endif