summaryrefslogtreecommitdiff
path: root/board.cpp
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 /board.cpp
parentcb820fa02315cbf5ecc7f87435bc724460104f19 (diff)
downloadtapasboard-b0886b317fd6de5fa960392b2a8a0dbb557475f5.tar.gz
tapasboard-b0886b317fd6de5fa960392b2a8a0dbb557475f5.zip
creating new topics
Diffstat (limited to 'board.cpp')
-rw-r--r--board.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/board.cpp b/board.cpp
index 7e734cb..5a755c7 100644
--- a/board.cpp
+++ b/board.cpp
@@ -9,6 +9,7 @@
#include "fetchconfigaction.h"
#include "fetchforumsaction.h"
#include "loginaction.h"
+#include "newtopicaction.h"
#include "newpostaction.h"
#include "xmlrpcinterface.h"
#include "board.h"
@@ -169,6 +170,11 @@ int Board::getTopicForumId(int topicId)
return -1;
}
+void Board::newTopic(int forumId, const QString &subject, const QString &text)
+{
+ enqueueAction(new NewTopicAction(forumId, subject, text, this));
+}
+
void Board::replyToTopic(int topicId, const QString &text)
{
enqueueAction(new NewPostAction(topicId, text, this));