/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel Project *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* 3.) client pulls the data by calling requestChannelList again. receiving the data in receiveChannelList
*/
class IrcListHelper : public SyncableObject {
+ SYNCABLE_OBJECT
Q_OBJECT
public:
};
public slots:
- inline virtual QVariantList requestChannelList(const NetworkId &netId, const QStringList &channelFilters) { emit channelListRequested(netId, channelFilters); return QVariantList(); }
+ inline virtual QVariantList requestChannelList(const NetworkId &netId, const QStringList &channelFilters) { REQUEST(ARG(netId), ARG(channelFilters)); return QVariantList(); }
inline virtual void receiveChannelList(const NetworkId &, const QStringList &, const QVariantList &) {};
- inline virtual void reportFinishedList(const NetworkId &netId) { emit finishedListReported(netId); }
-
-signals:
- void channelListRequested(const NetworkId &netId, const QStringList &channelFilters);
- void finishedListReported(const NetworkId &netId);
+ inline virtual void reportFinishedList(const NetworkId &netId) { SYNC(ARG(netId)) }
+ inline virtual void reportError(const QString &error) { SYNC(ARG(error)) }
};
+
#endif //IRCLISTHELPER_H