From f690c7dde14a6f9c5fbf04ed94170c7648591cb6 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 4 Apr 2013 20:58:57 +0200 Subject: store post position in database, create invisible items for unfetched --- fetchpostsaction.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'fetchpostsaction.h') diff --git a/fetchpostsaction.h b/fetchpostsaction.h index e122622..66e6c73 100644 --- a/fetchpostsaction.h +++ b/fetchpostsaction.h @@ -11,12 +11,15 @@ class FetchPostsAction : public Action { Q_OBJECT public: - explicit FetchPostsAction(int topicId, int start, int end, Board *board); - enum { - FetchAllPosts = -1 + /** Use as 'end' parameter; 'start' then indicates starting post. */ + FetchAllPosts = -1, + /** Use as 'start' parameter; 'end' then indicates number of posts. */ + FetchUnreadPosts = -2 }; + explicit FetchPostsAction(int topicId, int start, int end, Board *board); + bool isSupersetOf(Action *action) const; void execute(); -- cgit v1.2.3