summaryrefslogtreecommitdiff
path: root/topicmodel.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-02 00:51:58 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-02 00:51:58 +0200
commit427004acc6a80004f69c6ce059667465023269a9 (patch)
treebfa65471cc6411225016def30813623fdbc63f05 /topicmodel.h
parent28bb9f9ee55b4899204bb9f860f2cda6f90b4806 (diff)
downloadtapasboard-427004acc6a80004f69c6ce059667465023269a9.tar.gz
tapasboard-427004acc6a80004f69c6ce059667465023269a9.zip
parse bbcode, show usernames, ....
Diffstat (limited to 'topicmodel.h')
-rw-r--r--topicmodel.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/topicmodel.h b/topicmodel.h
index 95a3f78..39dcdee 100644
--- a/topicmodel.h
+++ b/topicmodel.h
@@ -21,7 +21,12 @@ public:
IconRole = Qt::DecorationRole,
ContentRole = Qt::ToolTipRole,
- PostIdRole = Qt::UserRole
+ PostIdRole = Qt::UserRole,
+ UserIdRole,
+ UserNameRole,
+ DateTimeRole,
+ HumanDateRole,
+ HumanTimeRole
};
QString boardUrl() const;
@@ -45,12 +50,14 @@ protected:
int post_id;
QString title;
QString content;
+ int user_id;
+ QString user_name;
QDateTime time;
QDateTime last_update_time;
};
private:
- static QDateTime parseDateTime(const QVariant& v);
+ static QDateTime parseDbDateTime(const QVariant& v);
static QDateTime oldestPostUpdate(const QList<Post>& posts);
QDateTime lastTopPostUpdate();
QList<Post> loadPosts(int start, int end);