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

Contents of /smsdaemon/TaskManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 96 - (show annotations) (download)
Mon Jun 16 14:04:19 2008 UTC (15 years, 11 months ago) by torben
File MIME type: text/plain
File size: 494 byte(s)
Finish the task interface

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 AddTask(Task* task);
24 void AddTemporaryTask(Task* task);
25
26 Task* GetTask(const std::string& taskname);
27
28
29 private:
30 std::map<std::string, Task*> _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