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

Annotation of /smsdaemon/TaskManager.h

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20