summaryrefslogtreecommitdiff
path: root/src/search/SearchModel.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-26 01:13:33 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-26 01:13:33 (GMT)
commit9e1be78bc21d1fb76a19ce12ef36193aea6e2b93 (patch)
tree081b67d551bb44fecbf6deb99b6c44ea9789614c /src/search/SearchModel.h
parentb2d3257ae944a3ea3b57dc8ee4171b1b2f85483e (diff)
downloadpowder-9e1be78bc21d1fb76a19ce12ef36193aea6e2b93.zip
powder-9e1be78bc21d1fb76a19ce12ef36193aea6e2b93.tar.gz
I've got to a point where I can no longer be bothered to think of a proper commit comment
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