diff options
Diffstat (limited to 'topicmodel.h')
-rw-r--r-- | topicmodel.h | 11 |
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); |