Parent Directory | Revision Log
Forgot to add Task.cpp in previous commit. Added a skeleton creator script for tasks
1 | torben | 97 | #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 |