diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-29 14:44:36 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-29 14:44:36 (GMT) |
| commit | 680a36549adaed0c3ce7e8906fadbdf190b0b3b0 (patch) | |
| tree | 21ca16411c1687bb212369a59c5f3de2a0cf023b /src/search/SearchModel.h | |
| parent | 7c53ca7799832920066c23cfad2f1d7fa82233c7 (diff) | |
| download | powder-680a36549adaed0c3ce7e8906fadbdf190b0b3b0.zip powder-680a36549adaed0c3ce7e8906fadbdf190b0b3b0.tar.gz | |
Background retrieval of save info and save list.
Diffstat (limited to 'src/search/SearchModel.h')
| -rw-r--r-- | src/search/SearchModel.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/search/SearchModel.h b/src/search/SearchModel.h index e99e4ca..d52529d 100644 --- a/src/search/SearchModel.h +++ b/src/search/SearchModel.h @@ -3,6 +3,7 @@ #include <vector> #include <string> +#include <pthread.h> #include <math.h> #include "Save.h" #include "SearchView.h" @@ -26,6 +27,14 @@ private: void notifyPageChanged(); void notifySortChanged(); void notifyShowOwnChanged(); + + //Variables and methods for backgroun save request + bool saveListLoaded; + bool updateSaveListWorking; + volatile bool updateSaveListFinished; + pthread_t updateSaveListThread; + static void * updateSaveListTHelper(void * obj); + void * updateSaveListT(); public: SearchModel(); virtual ~SearchModel(); @@ -42,6 +51,8 @@ public: bool GetShowOwn() { return showOwn; } void SetLoadedSave(Save * save); Save * GetLoadedSave(); + bool GetSavesLoaded() { return saveListLoaded; } + void Update(); }; #endif // SEARCHMODEL_H |
