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

Contents of /smsdaemon/TaskManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 140 - (show annotations) (download)
Sun Dec 7 12:06:01 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 518 byte(s)
Clean up header dependencies

1 #ifndef __MANAGER_H__
2 #define __MANAGER_H__
3
4 #include <string>
5 #include <map>
6 #include <list>
7
8 class Task;
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 void AddPersistantTask(Task* task);
23 void AddTemporaryTask(Task* task);
24
25 Task* GetPersistantTask(const std::string& taskname);
26
27
28 private:
29 std::map<std::string, Task*> _persistant_tasks;
30
31 std::list<Task*> _temp_tasks;
32
33 int _lastExecuted;
34 };
35
36 #endif //__MANAGER_H__

  ViewVC Help
Powered by ViewVC 1.1.20