diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-05-17 13:26:51 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-05-17 13:26:51 +0200 |
commit | dc52e1c5bac15f8c946e6ffac75d12a9e2e2780d (patch) | |
tree | 546751562645a84e1b60fe05539b07e963e99141 /src/tasktree.h | |
parent | 88fc1bfddff7a078ffad767fef44858165c0a69e (diff) |
Move createId() method to TaskTree. Store nextid in xml. Clean up XmlParser a bit.
Diffstat (limited to 'src/tasktree.h')
-rw-r--r-- | src/tasktree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tasktree.h b/src/tasktree.h index d5e215f..15d9c44 100644 --- a/src/tasktree.h +++ b/src/tasktree.h @@ -56,6 +56,8 @@ public: TaskTree(); ~TaskTree(); + taskid_t createId(); + 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); @@ -72,6 +74,8 @@ public: void fromXML(std::string xml); private: + taskid_t nextid; + node_t* createNode(taskid_t id); void insertChild(node_t* parent, node_t* child); |