Parent Directory | Revision Log
No need for Common.h to include TaskManager.h and PluginManager.h
1 | torben | 26 | #ifndef __MANAGER_H__ |
2 | #define __MANAGER_H__ | ||
3 | |||
4 | #include <string> | ||
5 | #include <map> | ||
6 | #include <vector> | ||
7 | |||
8 | #include "Task.h" | ||
9 | |||
10 | torben | 92 | class IGsmModem; |
11 | |||
12 | torben | 26 | class TaskManager |
13 | { | ||
14 | public: | ||
15 | TaskManager(); | ||
16 | ~TaskManager(); | ||
17 | |||
18 | torben | 92 | void ExecuteTasks(IGsmModem& modem); |
19 | torben | 26 | |
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 | torben | 82 | |
29 | int _lastExecuted; | ||
30 | torben | 26 | }; |
31 | |||
32 | #endif //__MANAGER_H__ |
ViewVC Help | |
Powered by ViewVC 1.1.20 |