X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Firclisthelper.h;h=b5d72dff278236f79258c0e1b893be9c830c6e98;hb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f;hp=08fc629d1c197e3422f2d64d8746d48362986d53;hpb=9d54503555534a2c554f09a33df6afa33d6308ec;p=quassel.git diff --git a/src/common/irclisthelper.h b/src/common/irclisthelper.h index 08fc629d..b5d72dff 100644 --- a/src/common/irclisthelper.h +++ b/src/common/irclisthelper.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 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,8 +18,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef IRCLISTHELPER_H -#define IRCLISTHELPER_H +#pragma once + +#include "common-export.h" #include "syncableobject.h" #include "types.h" @@ -32,13 +33,13 @@ * when RPL_LISTEND is received the clients will be informed, that they can pull the data * 3.) client pulls the data by calling requestChannelList again. receiving the data in receiveChannelList */ -class IrcListHelper : public SyncableObject +class COMMON_EXPORT IrcListHelper : public SyncableObject { + Q_OBJECT SYNCABLE_OBJECT - Q_OBJECT public: - inline IrcListHelper(QObject *parent = 0) : SyncableObject(parent) { setInitialized(); }; + inline IrcListHelper(QObject *parent = nullptr) : SyncableObject(parent) { setInitialized(); }; struct ChannelDescription { QString channelName; @@ -53,6 +54,3 @@ public slots: inline virtual void reportFinishedList(const NetworkId &netId) { SYNC(ARG(netId)) } inline virtual void reportError(const QString &error) { SYNC(ARG(error)) } }; - - -#endif //IRCLISTHELPER_H