summaryrefslogtreecommitdiff
path: root/fetchpostsaction.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-01 20:46:39 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-01 20:46:39 +0200
commita6e64fbf9404b201b04fbd1ab4b959a18d8f83a9 (patch)
tree6b97b6ac14716dbe51cb105819abde3e36ffd465 /fetchpostsaction.h
parent5ef8b38e55c1883224fe1f01f47aba45b7b42666 (diff)
downloadtapasboard-a6e64fbf9404b201b04fbd1ab4b959a18d8f83a9.tar.gz
tapasboard-a6e64fbf9404b201b04fbd1ab4b959a18d8f83a9.zip
add support for actually reading topics
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