summaryrefslogtreecommitdiff
path: root/src/search/SearchController.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/SearchController.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/SearchController.h')
-rw-r--r--src/search/SearchController.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/search/SearchController.h b/src/search/SearchController.h
index d67743e..e015648 100644
--- a/src/search/SearchController.h
+++ b/src/search/SearchController.h
@@ -5,6 +5,9 @@
#include "SearchModel.h"
#include "SearchView.h"
#include "preview/PreviewController.h"
+#include "Controller.h"
+#include "Save.h"
+
class SearchView;
class SearchModel;
class SearchController
@@ -13,16 +16,22 @@ private:
SearchModel * searchModel;
SearchView * searchView;
PreviewController * activePreview;
+ ControllerCallback * callback;
public:
- SearchController();
+ class OpenCallback;
+ bool HasExited;
+ SearchController(ControllerCallback * callback = NULL);
~SearchController();
SearchView * GetView() { return searchView; }
+ void Exit();
void DoSearch(std::string query);
void NextPage();
void PrevPage();
void ChangeSort();
void ShowOwn(bool show);
void OpenSave(int saveID);
+ void Update();
+ Save * GetLoadedSave();
};
#endif // SEARCHCONTROLLER_H