Parent Directory | Revision Log
No need for Common.h to include TaskManager.h and PluginManager.h
1 | #ifndef __MANAGER_H__ |
2 | #define __MANAGER_H__ |
3 | |
4 | #include <string> |
5 | #include <map> |
6 | #include <vector> |
7 | |
8 | #include "Task.h" |
9 | |
10 | class IGsmModem; |
11 | |
12 | class TaskManager |
13 | { |
14 | public: |
15 | TaskManager(); |
16 | ~TaskManager(); |
17 | |
18 | void ExecuteTasks(IGsmModem& modem); |
19 | |
20 | void LoadTasks(); |
21 | |
22 | Task* GetTask(const std::string& taskname); |
23 | |
24 | std::vector<Task*> GetTaskList(); |
25 | |
26 | private: |
27 | std::map<std::string, Task*> _tasks; |
28 | |
29 | int _lastExecuted; |
30 | }; |
31 | |
32 | #endif //__MANAGER_H__ |
ViewVC Help | |
Powered by ViewVC 1.1.20 |