Kgapi
locationcreatejob.cpp
34LocationCreateJob::LocationCreateJob(const LocationPtr &location, bool isCurrent, const AccountPtr &account, QObject *parent)
65 headers << QLatin1StringView(str) + QLatin1StringView(": ") + QLatin1StringView(request.rawHeader(str));
71ObjectsList LocationCreateJob::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 stores one or more Locations in Google Latitude service.
Definition locationcreatejob.h:24
LocationCreateJob(const LocationPtr &location, bool isCurrent, const AccountPtr &account, QObject *parent=nullptr)
Constructs a job that will store given location in user's Google Latitude account.
Definition locationcreatejob.cpp:34
ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override
KGAPI2::CreateJob::handleReplyWithItems implementation.
Definition locationcreatejob.cpp:71
QByteArray locationToJSON(const LocationPtr &location)
Serializes a Location object to JSON.
Definition latitudeservice.cpp:42
QUrl insertCurrentLocationUrl()
Returns URL for uploading user's current location.
Definition latitudeservice.cpp:154
LocationPtr JSONToLocation(const QByteArray &jsonData)
Parses JSON data into a Location object.
Definition latitudeservice.cpp:30
QVariant location(const QVariant &res)
void reserve(qsizetype size)
QVariant header(QNetworkRequest::KnownHeaders header) const const
ContentTypeHeader
QByteArray rawHeader(const QByteArray &headerName) const const
QList< QByteArray > rawHeaderList() const const
void setRawHeader(const QByteArray &headerName, const QByteArray &headerValue)
QObject * parent() 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:13 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:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.