X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientirclisthelper.h;h=54c76ff903b50cc5d7a214bbf9dde3e3178a4b24;hp=9a60ec16000ae919d614c89f5ff13821a203ebc6;hb=1fc8eb59a87c005ddfe7d21bc225bef8692b9743;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c diff --git a/src/client/clientirclisthelper.h b/src/client/clientirclisthelper.h index 9a60ec16..54c76ff9 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-2013 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * 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 @@ -23,24 +23,30 @@ #include "irclisthelper.h" -class ClientIrcListHelper : public IrcListHelper { - Q_OBJECT +class ClientIrcListHelper : public IrcListHelper +{ + SYNCABLE_OBJECT + Q_OBJECT public: - inline ClientIrcListHelper(QObject *object = 0) : IrcListHelper(object) {}; + inline ClientIrcListHelper(QObject *object = 0) : IrcListHelper(object) {}; - inline virtual const QMetaObject *syncMetaObject() const { return &IrcListHelper::staticMetaObject; } + inline virtual const QMetaObject *syncMetaObject() const { return &IrcListHelper::staticMetaObject; } 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); + 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); } 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