Kgapi
locationfetchhistoryjob.cpp
112 const QUrl url = LatitudeService::locationHistoryUrl(d->granularity, d->maxResults, d->maxTimestamp, d->minTimestamp);
118ObjectsList LocationFetchHistoryJob::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 all past locations from user's account on Google Latitude.
Definition locationfetchhistoryjob.h:25
void setGranularity(Latitude::Granularity granularity)
Sets granularity of the requested results.
Definition locationfetchhistoryjob.cpp:76
void setMinTimestamp(qlonglong minTimestamp)
Sets lower date limit for locations to fetch.
Definition locationfetchhistoryjob.cpp:89
ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override
KGAPI2::Job::handleReplyWithItems.
Definition locationfetchhistoryjob.cpp:118
void setMaxTimestamp(qlonglong maxTimestamp)
Sets upper date limit for locations to fetch.
Definition locationfetchhistoryjob.cpp:102
LocationFetchHistoryJob(const AccountPtr &account, QObject *parent=nullptr)
Constructs a job that will fetch all past user's locations from Google Latitude service.
Definition locationfetchhistoryjob.cpp:47
void setMaxResults(int results)
Sets maximum number of locations to fetch.
Definition locationfetchhistoryjob.cpp:63
ObjectsList parseLocationJSONFeed(const QByteArray &jsonFeed, FeedData &feedData)
Parses a JSON feed into list of Locations.
Definition latitudeservice.cpp:76
QUrl locationHistoryUrl(const Latitude::Granularity granularity, const int maxResults, const qlonglong maxTime, const qlonglong minTime)
Returns URL for fetching history of user's locations.
Definition latitudeservice.cpp:161
QVariant header(QNetworkRequest::KnownHeaders header) const const
ContentTypeHeader
QObject * parent() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
bool isValid() const const
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.