mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +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
|
@ -6,6 +6,7 @@
|
|||
|
||||
|
||||
#include "TaskItem.h"
|
||||
#include <algorithm>
|
||||
|
||||
namespace mirai {
|
||||
|
||||
|
@ -28,5 +29,13 @@ namespace mirai {
|
|||
const std::string& TaskItem::getText() const { return text; }
|
||||
const TaskItemState& TaskItem::getState() const { return state; }
|
||||
const std::string& TaskItem::getDate() const { return date; }
|
||||
const std::string& TaskItem::getStartTime() const { return startTime; }
|
||||
const std::string& TaskItem::getEndTime() const { return endTime; }
|
||||
const Tags& TaskItem::getTags() const { return tags; }
|
||||
bool TaskItem::hasDate() const { return isDate(date); }
|
||||
|
||||
|
||||
bool TaskItem::hasTag(const std::string& tag) const {
|
||||
return std::find(tags.begin(), tags.end(), tag) != tags.end();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue