mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 10:13:42 +00:00
Add 'Time' and 'Tags' as proper task's properties, also add raw format handling
This commit is contained in:
parent
3e7d8b4b70
commit
bae67e6851
15 changed files with 142 additions and 49 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue