Kgapi
tasklistcreatejob.cpp
26TaskListCreateJob::TaskListCreateJob(const TaskListPtr &taskList, const AccountPtr &account, QObject *parent)
33TaskListCreateJob::TaskListCreateJob(const TaskListsList &taskLists, const AccountPtr &account, QObject *parent)
60 headers << QLatin1StringView(str) + QLatin1StringView(": ") + QLatin1StringView(request.rawHeader(str));
66ObjectsList TaskListCreateJob::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 tasklists in user's Google Tasks account.
Definition tasklistcreatejob.h:26
TaskListCreateJob(const TaskListPtr &taskList, const AccountPtr &account, QObject *parent=nullptr)
Constructs a job that will create given taskList in user's Google Tasks account.
Definition tasklistcreatejob.cpp:26
ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override
KGAPI2::CreateJob::handleReplyWithItems implementation.
Definition tasklistcreatejob.cpp:66
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 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.