summaryrefslogtreecommitdiff
path: root/newtopicaction.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-06 21:20:30 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-06 21:20:30 +0200
commitb0886b317fd6de5fa960392b2a8a0dbb557475f5 (patch)
treea2e23cd67c601f2abee84b2d9553436f34716921 /newtopicaction.h
parentcb820fa02315cbf5ecc7f87435bc724460104f19 (diff)
downloadtapasboard-b0886b317fd6de5fa960392b2a8a0dbb557475f5.tar.gz
tapasboard-b0886b317fd6de5fa960392b2a8a0dbb557475f5.zip
creating new topics
Diffstat (limited to 'newtopicaction.h')
-rw-r--r--newtopicaction.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/newtopicaction.h b/newtopicaction.h
new file mode 100644
index 0000000..a04483c
--- /dev/null
+++ b/newtopicaction.h
@@ -0,0 +1,28 @@
+#ifndef NEWTOPICACTION_H
+#define NEWTOPICACTION_H
+
+#include "action.h"
+
+class XmlRpcPendingCall;
+
+class NewTopicAction : public Action
+{
+ Q_OBJECT
+public:
+ explicit NewTopicAction(int forumId, const QString& subject, const QString& text, Board *board);
+
+ bool isSupersetOf(Action *action) const;
+
+ void execute();
+
+private slots:
+ void handleFinishedCall();
+
+private:
+ XmlRpcPendingCall *_call;
+ int _forumId;
+ QString _subject;
+ QString _text;
+};
+
+#endif // NEWTOPICACTION_H