summaryrefslogtreecommitdiff
path: root/src/taskmanager.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-05-04 12:09:09 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-05-04 12:09:09 +0200
commitf1f69662df61f275313a7a57e11295d9679b3c83 (patch)
treefd02b1d450223f7fad2e3e0762861f620cb0097a /src/taskmanager.h
parent0be8965219787e5ceb20721ac1ccd6cbbafe51c1 (diff)
Changed naming. add to create and delete to remove
Diffstat (limited to 'src/taskmanager.h')
-rw-r--r--src/taskmanager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/taskmanager.h b/src/taskmanager.h
index d8fd751..c53c520 100644
--- a/src/taskmanager.h
+++ b/src/taskmanager.h
@@ -40,11 +40,10 @@ class TaskManager {
public:
TaskManager();
~TaskManager();
- task_t createTask();
- TaskIdList addTask(task_t t, taskid_t parentid) throw (std::exception);
+ TaskIdList createTask(taskid_t parentid) throw (std::exception);
TaskIdList updateTask(taskid_t id, task_t task) throw (std::exception);
- TaskIdList deleteTask(taskid_t id) throw (std::exception);
+ TaskIdList removeTask(taskid_t id) throw (std::exception);
TaskIdList moveTask(taskid_t id, taskid_t newParent) throw (std::exception);
TaskIdList subTasks(taskid_t) throw (std::exception);
@@ -57,6 +56,7 @@ private:
// TaskIdList ancestorList(taskid_t task);
taskid_t createId();
taskid_t idCount;
+ task_t nextTask();
};
extern TaskManager task_manager;