From f1f69662df61f275313a7a57e11295d9679b3c83 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Fri, 4 May 2012 12:09:09 +0200 Subject: Changed naming. add to create and delete to remove --- src/taskmanager.cc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/taskmanager.cc') 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 { -- cgit v1.2.3