-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask.h
More file actions
44 lines (35 loc) · 862 Bytes
/
Copy pathtask.h
File metadata and controls
44 lines (35 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef TASK
#define TASK
#include "database.h"
#include "app.h"
#include "utility.h"
enum TaskStatus {
WIP,
Completed
};
struct Comment{
string comment_owner; //the user who posted the comment
string comment_body; //the description
string comment_date;
};
struct Task{
int id;
string task_title;
string task_description;
string create_by;
string create_date;
string completed_by;
string completed_date;
std::vector<Comment> comments; //an array of comments
TaskStatus task_status;
};
void edit_ticket(Task& ticket);
void delete_ticket(Task& targetTask);
void mark_task_completed(Task& task, bool complete);
Task* get_task_by_id(int targetId);
void show_task(Task& targetTask);
void show_task(bool wip);
void post_comment(Task& task);
void create_ticket();
extern std::vector<Task> taskDB;
#endif