summaryrefslogtreecommitdiff
path: root/newpostaction.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-06 20:34:56 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-06 20:34:56 +0200
commitcb820fa02315cbf5ecc7f87435bc724460104f19 (patch)
tree19d089a0506c7da82f4e91af8e7df928d813a479 /newpostaction.h
parentb04a2a981a91ed58e55a275402cb2f9f73bd85a2 (diff)
downloadtapasboard-cb820fa02315cbf5ecc7f87435bc724460104f19.tar.gz
tapasboard-cb820fa02315cbf5ecc7f87435bc724460104f19.zip
support replying to posts
Diffstat (limited to 'newpostaction.h')
-rw-r--r--newpostaction.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/newpostaction.h b/newpostaction.h
new file mode 100644
index 0000000..27896df
--- /dev/null
+++ b/newpostaction.h
@@ -0,0 +1,28 @@
+#ifndef NEWPOSTACTION_H
+#define NEWPOSTACTION_H
+
+#include "action.h"
+
+class XmlRpcPendingCall;
+
+class NewPostAction : public Action
+{
+ Q_OBJECT
+public:
+ explicit NewPostAction(int topicId, const QString& text, Board *board);
+
+ bool isSupersetOf(Action *action) const;
+
+ void execute();
+
+private slots:
+ void handleFinishedCall();
+
+private:
+ XmlRpcPendingCall *_call;
+ int _topicId;
+ QString _text;
+};
+
+
+#endif // NEWPOSTACTION_H