summaryrefslogtreecommitdiff
path: root/src/task.h
diff options
context:
space:
mode:
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__*/