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

Contents of /smsdaemon/TaskManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 129 - (show annotations) (download)
Sat Dec 6 19:30:20 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 525 byte(s)
Normal task is now Persistant task

1 #ifndef __MANAGER_H__
2 #define __MANAGER_H__
3
4 #include <string>
5 #include <map>
6 #include <list>
7
8 #include "Task.h"
9
10
11 class IGsmModem;
12
13 class TaskManager
14 {
15 public:
16 TaskManager();
17 ~TaskManager();
18
19 void ExecuteTasks(IGsmModem& modem);
20
21 void LoadTasks();
22
23 void AddPersistantTask(Task* task);
24 void AddTemporaryTask(Task* task);
25
26 Task* GetPersistantTask(const std::string& taskname);
27
28
29 private:
30 std::map<std::string, Task*> _persistant_tasks;
31
32 std::list<Task*> _temp_tasks;
33
34 int _lastExecuted;
35 };
36
37 #endif //__MANAGER_H__

  ViewVC Help
Powered by ViewVC 1.1.20