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

Annotation of /smsdaemon/TaskManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 92 - (hide 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 torben 26 #ifndef __MANAGER_H__
2     #define __MANAGER_H__
3    
4     #include <string>
5     #include <map>
6     #include <vector>
7    
8     #include "Task.h"
9    
10 torben 92 class IGsmModem;
11    
12 torben 26 class TaskManager
13     {
14     public:
15     TaskManager();
16     ~TaskManager();
17    
18 torben 92 void ExecuteTasks(IGsmModem& modem);
19 torben 26
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 torben 82
29     int _lastExecuted;
30 torben 26 };
31    
32     #endif //__MANAGER_H__

  ViewVC Help
Powered by ViewVC 1.1.20