summaryrefslogtreecommitdiff
path: root/board.cpp
diff options
context:
space:
mode:
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));