/[projects]/smsdaemon/TaskManager.h
ViewVC logotype

Contents of /smsdaemon/TaskManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 92 - (show annotations) (download)
Mon Jun 16 11:30:20 2008 UTC (15 years, 11 months ago) by torben
File MIME type: text/plain
File size: 437 byte(s)
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