Kgapi
tasksservice.cpp
92 QString taskListId = feedData.requestUrl.toString().remove(QStringLiteral("https://www.googleapis.com/tasks/v1/lists/"));
118 url.setPath(Private::TasksBasePath % QLatin1Char('/') % tasklistID % TasksUrlPart % QLatin1Char('/') % taskID);
132 url.setPath(Private::TasksBasePath % QLatin1Char('/') % tasklistID % TasksUrlPart % QLatin1Char('/') % taskID);
139 url.setPath(Private::TasksBasePath % QLatin1Char('/') % tasklistID % TasksUrlPart % QLatin1Char('/') % taskID);
146 url.setPath(Private::TasksBasePath % QLatin1Char('/') % tasklistID % TasksUrlPart % QLatin1Char('/') % taskID % QLatin1StringView("/move"));
240 task->setRelatedTo(jsonData.value(ParentAttr).toString(), KCalendarCore::Incidence::RelTypeParent);
293 if ((task->status() == KCalendarCore::Incidence::StatusCompleted) && task->completed().isValid()) {
RelTypeParent
StatusNone
StatusNeedsAction
StatusCompleted
QUrl updateTaskListUrl(const QString &tasklistID)
Returns URL for modifying a tasklist.
Definition tasksservice.cpp:170
QByteArray taskListToJSON(const TaskListPtr &taskList)
Serializes a TaskList into JSON data.
Definition tasksservice.cpp:258
QByteArray taskToJSON(const TaskPtr &task)
Serializes a Task object into JSON.
Definition tasksservice.cpp:272
QUrl createTaskUrl(const QString &tasklistID)
Returns URL to create a single task.
Definition tasksservice.cpp:122
ObjectsList parseJSONFeed(const QByteArray &jsonFeed, FeedData &feedData)
Parses JSON feed into list of Tasks or TaskLists.
Definition tasksservice.cpp:65
QUrl fetchAllTasksUrl(const QString &tasklistID)
Returns URL to fetch all tasks from a single tasklist.
Definition tasksservice.cpp:108
QUrl removeTaskListUrl(const QString &tasklistID)
Returns URL for deleting a tasklist.
Definition tasksservice.cpp:177
QUrl fetchTaskUrl(const QString &tasklistID, const QString &taskID)
Returns URL for fetching a single task.
Definition tasksservice.cpp:115
TaskPtr JSONToTask(const QByteArray &jsonData)
Parses JSON data into a Task object.
Definition tasksservice.cpp:246
TaskListPtr JSONToTaskList(const QByteArray &jsonData)
Parses JSON data into a TaskList object.
Definition tasksservice.cpp:199
QUrl removeTaskUrl(const QString &tasklistID, const QString &taskID)
Returns URL for removing a task.
Definition tasksservice.cpp:136
QUrl moveTaskUrl(const QString &tasklistID, const QString &taskID, const QString &newParent)
Returns URL to reparent task.
Definition tasksservice.cpp:143
QUrl updateTaskUrl(const QString &tasklistID, const QString &taskID)
Returns URL for updating a task.
Definition tasksservice.cpp:129
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QByteArray & insert(qsizetype i, QByteArrayView data)
Compact
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
QJsonDocument fromVariant(const QVariant &variant)
bool isNull() const const
QByteArray toJson(JsonFormat format) const const
QVariant toVariant() const const
void append(QList< T > &&value)
bool isEmpty() const const
void reserve(qsizetype size)
Object
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QString left(qsizetype n) const const
QString & remove(QChar ch, Qt::CaseSensitivity cs)
QTaskBuilder< Task > task(Task &&task)
void setPath(const QString &path, ParsingMode mode)
void setQuery(const QString &query, ParsingMode mode)
QString toString(FormattingOptions options) const const
QMap< QString, QVariant > toMap() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:54:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:54:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.