From 39396a2660150770c3fd14aac8b4be0dcbae8497 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Sat, 10 Mar 2012 14:56:34 +0100 Subject: Added new task hierarchy based protocol. Drag and drop works somehow - maybe some weirdness in html5 drag and drop. --- src/task.h | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'src/task.h') diff --git a/src/task.h b/src/task.h index 4365c1c..43541bc 100644 --- a/src/task.h +++ b/src/task.h @@ -32,6 +32,16 @@ #include /* +Task: + id + subtasks +// tags + title + description +// primary_assignment +// secondary_assignment + + Protocol: Server -> client: @@ -51,18 +61,35 @@ x and y are integers as strings id are an integer as a string */ - +/* typedef struct { int x, y; int id; std::string title; std::string desc; } task_t; +*/ +/* +protocol: + add_task title description parent_id + del_task id + update_task id title description + move_task id parent + copy_task id parent +*/ + +typedef struct { + int id; + int parent_id; + std::string title; + std::string desc; +} task_t; + typedef std::list TaskList; extern TaskList tasklist; task_t create_task(std::string title, std::string desc, - int x, int y); + /*int x, int y*/ int parent_id); #endif/*__MUNIA_TASK_H__*/ -- cgit v1.2.3