summaryrefslogtreecommitdiff
path: root/src/task.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-03-10 14:56:34 +0100
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-03-10 14:56:34 +0100
commit39396a2660150770c3fd14aac8b4be0dcbae8497 (patch)
treeec1604a37725de1dfafade10bb4cb24d89e6322c /src/task.h
parent0f00f525e5c4da9f5a96cd35c3cdad50f84b51d9 (diff)
Added new task hierarchy based protocol.
Drag and drop works somehow - maybe some weirdness in html5 drag and drop.
Diffstat (limited to 'src/task.h')
-rw-r--r--src/task.h31
1 files changed, 29 insertions, 2 deletions
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 <string>
/*
+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<task_t> 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__*/