summaryrefslogtreecommitdiff
path: root/src/preview/PreviewModel.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-22 15:35:32 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-22 15:35:32 (GMT)
commitbeee75d9d1f9bc4a897887a0ac5b427449213f80 (patch)
tree5b76724ab9c7ae8ea719066b01e301ec8cbacec8 /src/preview/PreviewModel.h
parente6e23669eea8768ec004c16437c67717b66fb1a0 (diff)
downloadpowder-beee75d9d1f9bc4a897887a0ac5b427449213f80.zip
powder-beee75d9d1f9bc4a897887a0ac5b427449213f80.tar.gz
Multiple pages of comments
Diffstat (limited to 'src/preview/PreviewModel.h')
-rw-r--r--src/preview/PreviewModel.h12
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);