From d935b195a2246fa24d35df7c6fc354ae628a6777 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 10 Jan 2013 15:51:33 +0100 Subject: Added attributes to nodes as well as messages for manipulating and transporting them. Switched debug interface to hugin. --- src/tasktree.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tasktree.h') diff --git a/src/tasktree.h b/src/tasktree.h index 15d9c44..0fd2540 100644 --- a/src/tasktree.h +++ b/src/tasktree.h @@ -61,7 +61,8 @@ public: TaskIdList insertAsChild(taskid_t parentid, taskid_t id, task_t data) throw (std::exception); TaskIdList remove(taskid_t id) throw (std::exception); // TaskIdList move(taskid_t id, taskid_t newParentId) throw (std::exception); - TaskIdList updateData(taskid_t id, task_t t) throw (std::exception); + TaskIdList updateData(taskid_t id, const std::string &name, + const std::string &value) throw (std::exception); task_t data(taskid_t id) throw (std::exception); TaskIdList bfs(taskid_t id) throw (std::exception); @@ -73,9 +74,9 @@ public: std::string toXML(); void fromXML(std::string xml); -private: taskid_t nextid; +private: node_t* createNode(taskid_t id); void insertChild(node_t* parent, node_t* child); -- cgit v1.2.3