mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
Add Source creation/edition + Add missing edit forms for tasks and events
This commit is contained in:
parent
f1ac8a42d1
commit
a15c23bb21
24 changed files with 358 additions and 205 deletions
10
external/mirai-core/src/Source.cpp
vendored
10
external/mirai-core/src/Source.cpp
vendored
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue