From 5d1fbe2c839aa33d3855a29efc628e49a17b95f4 Mon Sep 17 00:00:00 2001 From: Louie S Date: Wed, 21 Feb 2024 20:15:03 -0500 Subject: Create entry class --- src/entry.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/entry.h (limited to 'src/entry.h') 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 +#include +#include +#include + +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 -- cgit