summaryrefslogtreecommitdiff
path: root/src/search/SearchModel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/SearchModel.h')
-rw-r--r--src/search/SearchModel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/search/SearchModel.h b/src/search/SearchModel.h
index 0ed7d86..e99e4ca 100644
--- a/src/search/SearchModel.h
+++ b/src/search/SearchModel.h
@@ -13,6 +13,7 @@ class SearchView;
class SearchModel
{
private:
+ Save * loadedSave;
string currentSort;
string lastQuery;
string lastError;
@@ -27,6 +28,7 @@ private:
void notifyShowOwnChanged();
public:
SearchModel();
+ virtual ~SearchModel();
void AddObserver(SearchView * observer);
void UpdateSaveList(int pageNumber, std::string query);
vector<Save*> GetSaveList();
@@ -38,6 +40,8 @@ public:
string GetSort() { return currentSort; }
void SetShowOwn(bool show) { showOwn = show; UpdateSaveList(1, lastQuery); notifyShowOwnChanged(); }
bool GetShowOwn() { return showOwn; }
+ void SetLoadedSave(Save * save);
+ Save * GetLoadedSave();
};
#endif // SEARCHMODEL_H