summaryrefslogtreecommitdiff
path: root/src/frontend/qtwidgets/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qtwidgets/entry.h')
-rw-r--r--src/frontend/qtwidgets/entry.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/frontend/qtwidgets/entry.h b/src/frontend/qtwidgets/entry.h
new file mode 100644
index 0000000..294df7b
--- /dev/null
+++ b/src/frontend/qtwidgets/entry.h
@@ -0,0 +1,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