summaryrefslogtreecommitdiff
path: root/src/frontend/qtwidgets/entry.h
blob: 294df7b7a6c5158a9b51d7cd7e77e4bf256acdae (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
38
39
#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
		 );

	static QList<Entry> entries;

	// function for sorting algorithm
	static bool compare(Entry a, Entry b);
};

#endif