summaryrefslogtreecommitdiff
path: root/src/gui/console/ConsoleController.h
blob: cf8b36ee02d71d40d4d6d87caf58fbd83d2e2b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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_ */