Add Source creation/edition + Add missing edit forms for tasks and events

This commit is contained in:
Vyn 2024-11-01 13:43:45 +01:00
parent f1ac8a42d1
commit a15c23bb21
24 changed files with 358 additions and 205 deletions

View file

@ -10,6 +10,7 @@
#include <algorithm>
#include <iterator>
#include <optional>
#include <string>
#include <vector>
namespace mirai
@ -144,13 +145,18 @@ std::vector<Task> Source::getUnscheduledTasks()
std::string Source::name() const
{
return data->name();
return name_;
}
void Source::setName(const std::string &name)
{
name_ = name;
}
std::string Source::type() const
{
// There is only 1 type for now
return "MarkdownFile";
return type_;
}
DataProvider *Source::dataProvider()