summaryrefslogtreecommitdiff
path: root/fetchforumsaction.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-01 15:04:58 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-01 15:04:58 +0200
commit5ef8b38e55c1883224fe1f01f47aba45b7b42666 (patch)
tree67a873c6a7c5263d202793314c3b3a61543fbb40 /fetchforumsaction.h
downloadtapasboard-5ef8b38e55c1883224fe1f01f47aba45b7b42666.tar.gz
tapasboard-5ef8b38e55c1883224fe1f01f47aba45b7b42666.zip
initial import
Diffstat (limited to 'fetchforumsaction.h')
-rw-r--r--fetchforumsaction.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/fetchforumsaction.h b/fetchforumsaction.h
new file mode 100644
index 0000000..b8625fa
--- /dev/null
+++ b/fetchforumsaction.h
@@ -0,0 +1,29 @@
+#ifndef FETCHFORUMSACTION_H
+#define FETCHFORUMSACTION_H
+
+#include <QtCore/QVariant>
+#include "action.h"
+
+class XmlRpcPendingCall;
+
+class FetchForumsAction : public Action
+{
+ Q_OBJECT
+public:
+ explicit FetchForumsAction(Board *board);
+
+ void execute();
+
+private slots:
+ void handleFinishedCall();
+
+private:
+ static QList<QVariantMap> flattenForumList(const QVariantList& list, int *order);
+ static QString unencodeForumText(const QVariant& v);
+
+
+private:
+ XmlRpcPendingCall *_call;
+};
+
+#endif // FETCHFORUMSACTION_H