blob: 61450f76da6c5d40fb80ae774c7beba67db4fc82 (
plain)
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
|
#ifndef ENTRY_H
#define ENTRY_H
#include <QDateTime>
#include <QString>
#include <QUrl>
struct Entry {
int id;
int parent_id;
QString desc;
QDateTime due;
QString due_alt;
QUrl link;
QString color; // consider making this a QColor instead
QString highlight; // see color comment
bool done;
bool hidden;
Entry(
int id,
int parent_id,
QString desc,
QDateTime due = QDateTime(),
QString due_alt = "",
QUrl link = QUrl(),
QString color = "",
QString highlight = "",
bool done = false,
bool hidden = false
);
// function for sorting algorithm
static bool compare(Entry a, Entry b);
};
#endif
|