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

Contents of /smsdaemon/Task.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97 - (show annotations) (download)
Mon Jun 16 14:11:49 2008 UTC (15 years, 11 months ago) by torben
File size: 346 byte(s)
Forgot to add Task.cpp in previous commit.

Added a skeleton creator script for tasks

1 #include "Task.h"
2
3 #include "common.h"
4 #include "TaskManager.h"
5
6 Task::Task(std::string name, bool isTemporary)
7 : _isFinished(false), _name(name), _isTemporary(isTemporary)
8 {
9 Common* cmn = Common::instance();
10 if (isTemporary)
11 {
12 cmn->GetTaskManager()->AddTemporaryTask(this);
13 }
14 else
15 {
16 cmn->GetTaskManager()->AddTask(this);
17 }
18 }

  ViewVC Help
Powered by ViewVC 1.1.20