diff options
author | Louie S <louie@example.com> | 2024-02-21 20:15:03 -0500 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-02-21 20:15:03 -0500 |
commit | 5d1fbe2c839aa33d3855a29efc628e49a17b95f4 (patch) | |
tree | e8f85cb80fbd9ed1a76c68d096d69b7577f68f8f /src/entry.h | |
parent | 2af22ca34e5120ba69cf20911bf802be57cc18dd (diff) |
Create entry class
Diffstat (limited to 'src/entry.h')
-rw-r--r-- | src/entry.h | 36 |
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 |