Kgapi
calendarmodifyjob.cpp
26CalendarModifyJob::CalendarModifyJob(const CalendarPtr &calendar, const AccountPtr &account, QObject *parent)
33CalendarModifyJob::CalendarModifyJob(const CalendarsList &calendars, const AccountPtr &account, QObject *parent)
50 const auto request = CalendarService::prepareRequest(CalendarService::updateCalendarUrl(calendar->uid()));
56ObjectsList CalendarModifyJob::handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData)
A job to modify calendars on user's Google Calendar account.
Definition calendarmodifyjob.h:26
ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override
KGAPI2::ModifyJob::handleReplyWithItems implementation.
Definition calendarmodifyjob.cpp:56
CalendarModifyJob(const CalendarPtr &calendar, const AccountPtr &account, QObject *parent=nullptr)
Constructs a job that will write changes in given calendar to corresponding calendar on user's Google...
Definition calendarmodifyjob.cpp: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
Abstract superclass for all jobs that somehow modify resources on Google.
Definition modifyjob.h:25
QUrl updateCalendarUrl(const QString &calendarID)
Returns URL for updating existing calendar.
Definition calendarservice.cpp:91
QByteArray calendarToJSON(const CalendarPtr &calendar)
Serializes calendar into JSON.
Definition calendarservice.cpp:344
CalendarPtr JSONToCalendar(const QByteArray &jsonData)
Parses calendar JSON data into Calendar object.
Definition calendarservice.cpp:291
QNetworkRequest prepareRequest(const QUrl &url)
Preparse a QNetworkRequest for given URL.
Definition calendarservice.cpp:67
QVariant header(QNetworkRequest::KnownHeaders header) const const
ContentTypeHeader
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 Fri Dec 6 2024 12:11:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:11:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.