Add 'Time' and 'Tags' as proper task's properties, also add raw format handling

This commit is contained in:
Vyn 2024-04-11 11:42:13 +02:00
parent 3e7d8b4b70
commit bae67e6851
15 changed files with 142 additions and 49 deletions

View file

@ -7,6 +7,7 @@
#ifndef MIRAI_TASKITEM_H
#define MIRAI_TASKITEM_H
#include "using.h"
#include "utils.h"
#include <ctime>
#include <fstream>
@ -35,14 +36,22 @@ namespace mirai {
void setText(const std::string& text);
const std::string& getLine() const;
const std::string& getText() const;
const TaskItemState& getState() const;
const std::string& getDate() const;
const std::string& getStartTime() const;
const std::string& getEndTime() const;
const Tags& getTags() const;
bool hasTag(const std::string& tag) const;
bool hasDate() const;
std::string text;
TaskItemState state;
std::string date;
std::string startTime;
std::string endTime;
Tags tags;
};
}