diff options
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 |
