summaryrefslogtreecommitdiff
path: root/fetchpostsaction.h
diff options
context:
space:
mode:
Diffstat (limited to 'fetchpostsaction.h')
-rw-r--r--fetchpostsaction.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/fetchpostsaction.h b/fetchpostsaction.h
new file mode 100644
index 0000000..63cb5f8
--- /dev/null
+++ b/fetchpostsaction.h
@@ -0,0 +1,33 @@
+#ifndef FETCHPOSTSACTION_H
+#define FETCHPOSTSACTION_H
+
+#include <QtCore/QVariant>
+#include <QtSql/QSqlQuery>
+#include "action.h"
+
+class XmlRpcPendingCall;
+
+class FetchPostsAction : public Action
+{
+ Q_OBJECT
+public:
+ explicit FetchPostsAction(int topicId, int start, int end, Board *board);
+
+ bool isSupersetOf(Action *action) const;
+
+ void execute();
+
+private slots:
+ void handleFinishedCall();
+
+private:
+ static QString unencodePostText(const QVariant& v);
+
+private:
+ XmlRpcPendingCall *_call;
+ int _topicId;
+ int _start;
+ int _end;
+};
+
+#endif // FETCHPOSTSACTION_H