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

Contents of /smsdaemon/TaskManager.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (show annotations) (download)
Mon Jun 9 18:15:53 2008 UTC (15 years, 11 months ago) by torben
File size: 538 byte(s)
Added first basic edition of smsdaemon.

So far sending & receiving sms works and a basic sample plugin is implemented.

1
2 #include "TaskManager.h"
3
4 #include "common.h"
5
6
7
8 TaskManager::TaskManager()
9 {
10 }
11
12 TaskManager::~TaskManager()
13 {
14 }
15
16
17 void TaskManager::LoadTasks()
18 {
19
20 }
21
22 Task* TaskManager::GetTask(const std::string& taskname)
23 {
24 return _tasks[ taskname ];
25 }
26
27
28 std::vector<Task*> TaskManager::GetTaskList()
29 {
30 typedef std::map<std::string, Task*>::iterator MapIterator;
31 std::vector<Task*> task_list;
32
33 for (MapIterator it = _tasks.begin(); it != _tasks.end(); it++)
34 {
35 Task* pl = (*it).second;
36 task_list.push_back(pl);
37 }
38
39
40 return task_list;
41 }

  ViewVC Help
Powered by ViewVC 1.1.20