summaryrefslogtreecommitdiff
path: root/src/console/ConsoleController.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/ConsoleController.h')
-rw-r--r--src/console/ConsoleController.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/console/ConsoleController.h b/src/console/ConsoleController.h
new file mode 100644
index 0000000..d5fc07a
--- /dev/null
+++ b/src/console/ConsoleController.h
@@ -0,0 +1,38 @@
+/*
+ * ConsoleController.h
+ *
+ * Created on: Jan 31, 2012
+ * Author: Simon
+ */
+
+#ifndef CONSOLECONTROLLER_H_
+#define CONSOLECONTROLLER_H_
+
+#include <string>
+#include "Controller.h"
+#include "ConsoleView.h"
+#include "ConsoleModel.h"
+#include "ConsoleCommand.h"
+#include "cat/CommandInterface.h"
+
+class ConsoleModel;
+class ConsoleView;
+class ConsoleController {
+ ControllerCallback * callback;
+ ConsoleView * consoleView;
+ ConsoleModel * consoleModel;
+ CommandInterface * commandInterface;
+public:
+ bool HasDone;
+ ConsoleController(ControllerCallback * callback, CommandInterface * commandInterface);
+ std::string FormatCommand(std::string command);
+ void EvaluateCommand(std::string command);
+ void NextCommand();
+ void PreviousCommand();
+ void Exit();
+ void CloseConsole();
+ ConsoleView * GetView();
+ virtual ~ConsoleController();
+};
+
+#endif /* CONSOLECONTROLLER_H_ */