summaryrefslogtreecommitdiff
path: root/board.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-07 03:13:14 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-07 03:13:14 +0200
commit9e67c13e587ccf10084144fea033beda316faed5 (patch)
tree33170309064aaf182d14e95e1d8121a8041180b3 /board.h
parent1a66f6ee4f3806e2a18af718654e7281c7dd1066 (diff)
downloadtapasboard-9e67c13e587ccf10084144fea033beda316faed5.tar.gz
tapasboard-9e67c13e587ccf10084144fea033beda316faed5.zip
add support for reading announcements & stickies
Diffstat (limited to 'board.h')
-rw-r--r--board.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/board.h b/board.h
index 81ee81f..d7e91a2 100644
--- a/board.h
+++ b/board.h
@@ -21,12 +21,19 @@ class Board : public QObject
Q_PROPERTY(bool busy READ busy NOTIFY busyChanged)
Q_PROPERTY(bool loggedIn READ loggedIn NOTIFY loggedInChanged)
Q_PROPERTY(int rootForumId READ rootForumId CONSTANT)
+ Q_ENUMS(TopicType)
public:
explicit Board(QObject *parent = 0);
Board(const QUrl& url, const QString& username, const QString& password, QObject *parent = 0);
~Board();
+ enum TopicType {
+ Normal = 0,
+ Sticky = 1,
+ Announcement = 2
+ };
+
static const QLatin1String CURRENT_DB_VERSION;
bool busy() const;
@@ -71,7 +78,7 @@ public slots:
void notifyConfigChanged(const QString& key = QString());
void notifyForumsChanged();
void notifyForumChanged(int forumId);
- void notifyForumTopicsChanged(int forumId, int start, int end);
+ void notifyForumTopicsChanged(int forumId, Board::TopicType type, int start, int end);
void notifyForumTopicChanged(int forumId, int topicId);
void notifyTopicPostsChanged(int topicId, int start, int end);
void notifyTopicPostsUnread(int topicId, int position);
@@ -87,7 +94,7 @@ signals:
void configChanged(const QString& key);
void forumsChanged();
void forumChanged(int forumId);
- void forumTopicsChanged(int forumId, int start, int end);
+ void forumTopicsChanged(int forumId, Board::TopicType type, int start, int end);
void forumTopicChanged(int forumId, int topicId);
void topicPostsChanged(int topicId, int start, int end);
void topicPostsUnread(int topicId, int position);