summaryrefslogtreecommitdiff
path: root/src/taskmanager.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-05-04 12:10:49 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-05-04 12:10:49 +0200
commita53cf7e9f36021a43259c94a34107c2df9bdca12 (patch)
tree629c0055596355910940c28f6a347299a25e0ae4 /src/taskmanager.cc
parentbc636c8d5a14fed3a376322f93098203aa04054f (diff)
parentf1f69662df61f275313a7a57e11295d9679b3c83 (diff)
Merge branch 'master' of https://git.oftal.dk/munia
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 f49875a..2526341 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 {