summaryrefslogtreecommitdiff
path: root/src/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entry.h')
-rw-r--r--src/entry.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/entry.h b/src/entry.h
new file mode 100644
index 0000000..6bee76c
--- /dev/null
+++ b/src/entry.h
@@ -0,0 +1,36 @@
+#ifndef ENTRY_H
+#define ENTRY_H
+
+#include <QDateTime>
+#include <QHBoxLayout>
+#include <QString>
+#include <QUrl>
+
+class Entry : QHBoxLayout {
+ public:
+ 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
+ );
+};
+
+#endif