X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreirclisthelper.h;h=2660c281d80f84aeb7da0c77835bc233690b5d32;hp=688344a1a6e331bc34b1e6f333a7281b208e7a26;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=61c8d84d1c849373e0f115dc748ed45cff95287d diff --git a/src/core/coreirclisthelper.h b/src/core/coreirclisthelper.h index 688344a1..2660c281 100644 --- a/src/core/coreirclisthelper.h +++ b/src/core/coreirclisthelper.h @@ -27,37 +27,39 @@ class QTimerEvent; -class CoreIrcListHelper : public IrcListHelper { - SYNCABLE_OBJECT - Q_OBJECT +class CoreIrcListHelper : public IrcListHelper +{ + SYNCABLE_OBJECT + Q_OBJECT public: - inline CoreIrcListHelper(CoreSession *coreSession) : IrcListHelper(coreSession), _coreSession(coreSession) {}; + inline CoreIrcListHelper(CoreSession *coreSession) : IrcListHelper(coreSession), _coreSession(coreSession) {}; - inline virtual const QMetaObject *syncMetaObject() const { return &IrcListHelper::staticMetaObject; } + inline virtual const QMetaObject *syncMetaObject() const { return &IrcListHelper::staticMetaObject; } - inline CoreSession *coreSession() const { return _coreSession; } + inline CoreSession *coreSession() const { return _coreSession; } - inline bool requestInProgress(const NetworkId &netId) const { return _channelLists.contains(netId); } + inline bool requestInProgress(const NetworkId &netId) const { return _channelLists.contains(netId); } public slots: - virtual QVariantList requestChannelList(const NetworkId &netId, const QStringList &channelFilters); - bool addChannel(const NetworkId &netId, const QString &channelName, quint32 userCount, const QString &topic); - bool endOfChannelList(const NetworkId &netId); + virtual QVariantList requestChannelList(const NetworkId &netId, const QStringList &channelFilters); + bool addChannel(const NetworkId &netId, const QString &channelName, quint32 userCount, const QString &topic); + bool endOfChannelList(const NetworkId &netId); protected: - void timerEvent(QTimerEvent *event); + void timerEvent(QTimerEvent *event); private: - bool dispatchQuery(const NetworkId &netId, const QString &query); + bool dispatchQuery(const NetworkId &netId, const QString &query); private: - CoreSession *_coreSession; + CoreSession *_coreSession; - QHash _queuedQuery; - QHash > _channelLists; - QHash _finishedChannelLists; - QHash _queryTimeout; + QHash _queuedQuery; + QHash > _channelLists; + QHash _finishedChannelLists; + QHash _queryTimeout; }; + #endif //COREIRCLISTHELPER_H