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

Diff of /smsdaemon/TaskManager.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 82 by torben, Sun Jun 15 20:06:39 2008 UTC revision 149 by torben, Sun Dec 7 20:58:41 2008 UTC
# Line 3  Line 3 
3    
4  #include <string>  #include <string>
5  #include <map>  #include <map>
6  #include <vector>  #include <list>
7    
8  #include "Task.h"  class Task;
9    
10    class ISmsTransceiver;
11    
12  class TaskManager  class TaskManager
13  {  {
# Line 13  public: Line 15  public:
15          TaskManager();          TaskManager();
16          ~TaskManager();          ~TaskManager();
17    
18          void ExecuteTasks();          void ExecuteTasks(ISmsTransceiver& modem);
19    
20          void LoadTasks();          void LoadTasks();
21    
22          Task* GetTask(const std::string& taskname);          void AddPersistantTask(Task* task);
23            void AddTemporaryTask(Task* task);
24    
25            Task* GetPersistantTask(const std::string& taskname);
26    
     std::vector<Task*> GetTaskList();  
27    
28  private:  private:
29          std::map<std::string, Task*> _tasks;          std::map<std::string, Task*> _persistant_tasks;
30    
31            std::list<Task*> _temp_tasks;
32    
33          int _lastExecuted;          int _lastExecuted;
34  };  };

Legend:
Removed from v.82  
changed lines
  Added in v.149

  ViewVC Help
Powered by ViewVC 1.1.20