version 0.0.1
[fms.git] / include / commandthread.h
1 #ifndef _commandthread_\r
2 #define _commandthread_\r
3 \r
4 #include "ilogger.h"\r
5 #include "idatabase.h"\r
6 \r
7 #include <zthread/Thread.h>\r
8 \r
9 class CommandThread:public ZThread::Runnable,public ILogger, public IDatabase\r
10 {\r
11 public:\r
12 \r
13         void run();\r
14 \r
15 private:\r
16 \r
17         void HandleInput(const std::string &input);\r
18         \r
19         // methods to handle commands\r
20         void HandleHelpCommand();\r
21         void HandleQuit();\r
22         \r
23         bool m_running;\r
24 \r
25 };\r
26 \r
27 #endif  // _commandthread_\r