diff options
| author | Bryan Hoyle <starfoxprime@gmail.com> | 2012-06-22 16:00:17 (GMT) |
|---|---|---|
| committer | Bryan Hoyle <starfoxprime@gmail.com> | 2012-06-22 16:00:17 (GMT) |
| commit | 6fa05d1930964d0a09093c627b30241d73c69dda (patch) | |
| tree | b2d9856f5f0c26529de8eff8fc8b8f39cb234b64 /src/preview/PreviewModel.h | |
| parent | 58f3494f6fce58729e6e3fe91e1234a9bd636d55 (diff) | |
| parent | 55d90a44a8425f70b08d864570e255f4bad8ba4c (diff) | |
| download | powder-6fa05d1930964d0a09093c627b30241d73c69dda.zip powder-6fa05d1930964d0a09093c627b30241d73c69dda.tar.gz | |
Merge branch 'master' of github.com:FacialTurd/PowderToypp
Diffstat (limited to 'src/preview/PreviewModel.h')
| -rw-r--r-- | src/preview/PreviewModel.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/preview/PreviewModel.h b/src/preview/PreviewModel.h index 5a0fd53..f00a418 100644 --- a/src/preview/PreviewModel.h +++ b/src/preview/PreviewModel.h @@ -33,11 +33,17 @@ class PreviewModel { std::vector<SaveComment*> * saveComments; void notifySaveChanged(); void notifySaveCommentsChanged(); + void notifyCommentsPageChanged(); //Background retrieval int tSaveID; int tSaveDate; + // + bool commentsLoaded; + int commentsTotal; + int commentsPageNumber; + bool updateSaveDataWorking; volatile bool updateSaveDataFinished; pthread_t updateSaveDataThread; @@ -59,6 +65,12 @@ public: PreviewModel(); SaveInfo * GetSave(); std::vector<SaveComment*> * GetComments(); + + bool GetCommentsLoaded(); + int GetCommentsPageNum(); + int GetCommentsPageCount(); + void UpdateComments(int pageNumber); + void AddObserver(PreviewView * observer); void UpdateSave(int saveID, int saveDate); void SetFavourite(bool favourite); |
