-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskController.h
More file actions
43 lines (28 loc) · 808 Bytes
/
TaskController.h
File metadata and controls
43 lines (28 loc) · 808 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
/*
* TaskController.h
*
* Created on: 15 Feb 2012
* Author: Max Foster
*/
#ifndef TASKCONTROLLER_H
#define TASKCONTROLLER_H
#include "Database.h"
class QWidget;
class Task;
namespace TaskController
{
void Index(QWidget *caller);
void Show(int taskId, QWidget *caller);
void Show(Task &task, QWidget *caller);
Task New(QWidget *caller);
void Edit(int taskId, QWidget *caller);
void Edit(Task &task, QWidget *caller);
bool Create(Task &taskAttributes, QWidget *caller);
bool Update(const Task &task, QWidget *caller);
bool Destroy(int taskId, QWidget *caller);
bool Destroy(Task &task, QWidget *caller);
Task getTask(int taskId);
Database<Task>::recordListPtr getAllTasks();
void sortTasksByDate(Database<Task>::recordList &tasks, bool ascending = true);
}
#endif // TASKCONTROLLER_H