#ifndef FETCHTOPICSACTION_H #define FETCHTOPICSACTION_H #include #include #include "action.h" class XmlRpcPendingCall; class FetchTopicsAction : public Action { Q_OBJECT public: explicit FetchTopicsAction(int forumId, int start, int end, Board *board); enum { FetchAllTopics = -1 }; bool isSupersetOf(Action *action) const; void execute(); private slots: void handleFinishedCall(); private: static QString decodeTopicText(const QVariant& v); QList getCurrentDbTopics(int start, int end); private: XmlRpcPendingCall *_call; int _forumId; int _start; int _end; }; #endif // FETCHTOPICSACTION_H