summaryrefslogtreecommitdiff
path: root/src/tasktree.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasktree.h')
-rw-r--r--src/tasktree.h4
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);