summaryrefslogtreecommitdiff
path: root/src/taskmanager.cc
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.cc
parent0be8965219787e5ceb20721ac1ccd6cbbafe51c1 (diff)
Changed naming. add to create and delete to remove
Diffstat (limited to 'src/taskmanager.cc')
-rw-r--r--src/taskmanager.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/taskmanager.cc b/src/taskmanager.cc
index b1fa34e..f5d9866 100644
--- a/src/taskmanager.cc
+++ b/src/taskmanager.cc
@@ -72,14 +72,6 @@ taskid_t TaskManager::createId() {
return idCount++;
}
-task_t TaskManager::createTask() {
- task_t t;
-
- t.id = createId();
-
- return t;
-}
-
TaskIdList TaskManager::moveTask(taskid_t id, taskid_t to)
throw (std::exception) {
TaskIdList affectedTasks;
@@ -94,7 +86,7 @@ TaskIdList TaskManager::moveTask(taskid_t id, taskid_t to)
return affectedTasks;
}
-TaskIdList TaskManager::deleteTask(taskid_t id)
+TaskIdList TaskManager::removeTask(taskid_t id)
throw (std::exception) {
TaskIdList affectedTasks;
@@ -123,10 +115,12 @@ TaskIdList TaskManager::updateTask(taskid_t id, task_t t)
return affectedTasks;
}
-TaskIdList TaskManager::addTask(task_t t, taskid_t parentid)
+TaskIdList TaskManager::createTask(taskid_t parentid)
throw (std::exception) {
TaskIdList affectedTasks;
+ task_t t;
+ t.title = "";
taskid_t id = createId();
try {