X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientirclisthelper.h;h=a1961ec86ecb70c6860d22add6a6bf13ba9b55c3;hp=3cc5b7bf60787c8d04e7c621f4b769f05bfdaf62;hb=HEAD;hpb=f6b9eeda207d42c99fc3e9085631722cf2ec83dc diff --git a/src/client/clientirclisthelper.h b/src/client/clientirclisthelper.h index 3cc5b7bf..871e4506 100644 --- a/src/client/clientirclisthelper.h +++ b/src/client/clientirclisthelper.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,36 +15,36 @@ * 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 CLIENTIRCLISTHELPER_H -#define CLIENTIRCLISTHELPER_H +#pragma once + +#include "client-export.h" #include "irclisthelper.h" -class ClientIrcListHelper : public IrcListHelper { - SYNCABLE_OBJECT - Q_OBJECT +class CLIENT_EXPORT ClientIrcListHelper : public IrcListHelper +{ + Q_OBJECT public: - inline ClientIrcListHelper(QObject *object = 0) : IrcListHelper(object) {}; - - inline virtual const QMetaObject *syncMetaObject() const { return &IrcListHelper::staticMetaObject; } + inline ClientIrcListHelper(QObject* object = nullptr) + : IrcListHelper(object){}; public slots: - virtual QVariantList requestChannelList(const NetworkId &netId, const QStringList &channelFilters); - virtual void receiveChannelList(const NetworkId &netId, const QStringList &channelFilters, const QVariantList &channels); - virtual void reportFinishedList(const NetworkId &netId); - inline virtual void reportError(const QString &error) { emit errorReported(error); } + QVariantList requestChannelList(const NetworkId& netId, const QStringList& channelFilters) override; + void receiveChannelList(const NetworkId& netId, const QStringList& channelFilters, const QVariantList& channels) override; + void reportFinishedList(const NetworkId& netId) override; + inline void reportError(const QString& error) override { emit errorReported(error); } signals: - void channelListReceived(const NetworkId &netId, const QStringList &channelFilters, const QList &channelList); - void finishedListReported(const NetworkId &netId); - void errorReported(const QString &error); + void channelListReceived(const NetworkId& netId, + const QStringList& channelFilters, + const QList& channelList); + void finishedListReported(const NetworkId& netId); + void errorReported(const QString& error); private: - NetworkId _netId; + NetworkId _netId; }; - -#endif //CLIENTIRCLISTHELPER_H