diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 20:58:57 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 20:58:57 +0200 |
commit | f690c7dde14a6f9c5fbf04ed94170c7648591cb6 (patch) | |
tree | 6e63dac978af3864622d0a9f85dac07f24318930 /fetchpostsaction.h | |
parent | 256e7837ce8cb30b0c0a8c73306abdffa80365a6 (diff) | |
download | tapasboard-f690c7dde14a6f9c5fbf04ed94170c7648591cb6.tar.gz tapasboard-f690c7dde14a6f9c5fbf04ed94170c7648591cb6.zip |
store post position in database, create invisible items for unfetched
Diffstat (limited to 'fetchpostsaction.h')
-rw-r--r-- | fetchpostsaction.h | 9 |
1 files changed, 6 insertions, 3 deletions
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(); |