Kgapi
locationfetchjob.cpp
40LocationFetchJob::LocationFetchJob(qlonglong timestamp, const AccountPtr &account, QObject *parent)
79ObjectsList LocationFetchJob::handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData)
Abstract superclass for all jobs that fetch resources from Google.
Definition fetchjob.h:25
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 fetch current or a specific locations from user's account on Google Latitude.
Definition locationfetchjob.h:26
ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override
KGAPI2::FetchJob::handleReplyWithItems implementation.
Definition locationfetchjob.cpp:79
void setGranularity(Latitude::Granularity granularity)
Sets granularity of the requested result.
Definition locationfetchjob.cpp:57
LocationFetchJob(const AccountPtr &account, QObject *parent=nullptr)
Constructs a job that will fetch users current locations from Google Latitude service.
Definition locationfetchjob.cpp:34
QUrl retrieveCurrentLocationUrl(const Latitude::Granularity granularity)
Returns URL for fetch current user's location.
Definition latitudeservice.cpp:132
QUrl retrieveLocationUrl(const qlonglong id, const Latitude::Granularity granularity)
URL for fetching a specific location.
Definition latitudeservice.cpp:188
LocationPtr JSONToLocation(const QByteArray &jsonData)
Parses JSON data into a Location object.
Definition latitudeservice.cpp:30
QVariant header(QNetworkRequest::KnownHeaders header) const const
ContentTypeHeader
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.