version 0.1.3
[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 #include "pthreadwrapper.h"\r
9 \r
10 class CommandThread:public PThread::Runnable,public ILogger, public IDatabase\r
11 {\r
12 public:\r
13 \r
14         void Run();\r
15 \r
16 private:\r
17 \r
18         void HandleInput(const std::string &input);\r
19         \r
20         // methods to handle commands\r
21         void HandleHelpCommand();\r
22         void HandleQuit();\r
23         \r
24         bool m_running;\r
25 \r
26 };\r
27 \r
28 #endif  // _commandthread_\r