X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientirclisthelper.h;h=d4dc98d0037edb93371eb88f06147c0a8d956dff;hp=9a60ec16000ae919d614c89f5ff13821a203ebc6;hb=fcacaaf16551524c7ebb6114254d005274cc3d63;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c diff --git a/src/client/clientirclisthelper.h b/src/client/clientirclisthelper.h index 9a60ec16..d4dc98d0 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-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,32 +15,33 @@ * 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 { - 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); + 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 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