Kgapi
taskcreatejob.cpp
38TaskCreateJob::TaskCreateJob(const TaskPtr &task, const QString &taskListId, const AccountPtr &account, QObject *parent)
46TaskCreateJob::TaskCreateJob(const TasksList &tasks, const QString &taskListId, const AccountPtr &account, QObject *parent)
111ObjectsList TaskCreateJob::handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData)
Abstract superclass for all jobs that create new objects on the server.
Definition createjob.h:26
void setErrorString(const QString &errorString)
Set job error description to errorString.
Definition job.cpp:401
virtual void enqueueRequest(const QNetworkRequest &request, const QByteArray &data=QByteArray(), const QString &contentType=QString())
Enqueues request in dispatcher queue.
Definition job.cpp:513
A job to create one or more new tasks in Google Tasks.
Definition taskcreatejob.h:26
void setParentItem(const QString &parentId)
Sets ID of parent task to create new tasks in.
Definition taskcreatejob.cpp:61
ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override
A reply handler that returns items parsed from @ rawData.
Definition taskcreatejob.cpp:111
QString parentItem
Specified ID of item that the newly created tasks will be subtasks of.
Definition taskcreatejob.h:40
TaskCreateJob(const TaskPtr &task, const QString &taskListId, const AccountPtr &account, QObject *parent=nullptr)
Constructs a job that will create given task in a tasklist with id taskListId.
Definition taskcreatejob.cpp:38
void setPrevious(const QString &previousId)
Sets previous sibling task identifier.
Definition taskcreatejob.cpp:76
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
TaskPtr JSONToTask(const QByteArray &jsonData)
Parses JSON data into a Task object.
Definition tasksservice.cpp:246
QVariant header(QNetworkRequest::KnownHeaders header) const const
ContentTypeHeader
QString tr(const char *sourceText, const char *disambiguation, int n)
void setQuery(const QString &query, ParsingMode mode)
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.