Kgapi
tasklistmodifyjob.cpp
26TaskListModifyJob::TaskListModifyJob(const TaskListPtr &taskList, const AccountPtr &account, QObject *parent)
33TaskListModifyJob::TaskListModifyJob(const TaskListsList &taskLists, const AccountPtr &account, QObject *parent)
60 headers << QLatin1StringView(str) + QLatin1StringView(": ") + QLatin1StringView(request.rawHeader(str));
66ObjectsList TaskListModifyJob::handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData)
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
Abstract superclass for all jobs that somehow modify resources on Google.
Definition modifyjob.h:25
A job to modify tasklists in user's Google Tasks account.
Definition tasklistmodifyjob.h:26
TaskListModifyJob(const TaskListPtr &taskList, const AccountPtr &account, QObject *parent=nullptr)
Constructs a job that will write changes in given taskList to corresponding tasklist in user's Google...
Definition tasklistmodifyjob.cpp:26
ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override
KGAPI2::ModifyJob::handleReplyWithItems implementation.
Definition tasklistmodifyjob.cpp:66
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
TaskListPtr JSONToTaskList(const QByteArray &jsonData)
Parses JSON data into a TaskList object.
Definition tasksservice.cpp:199
void reserve(qsizetype size)
QVariant header(QNetworkRequest::KnownHeaders header) const const
ContentTypeHeader
QByteArray rawHeader(const QByteArray &headerName) const const
QList< QByteArray > rawHeaderList() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.