KGAPI2::LatitudeService

KGAPI2::LatitudeService Namespace Reference

Functions

QString APIVersion ()
 
QUrl deleteCurrentLocationUrl ()
 
QUrl deleteLocationUrl (const qlonglong id)
 
QUrl insertCurrentLocationUrl ()
 
QUrl insertLocationUrl ()
 
LocationPtr JSONToLocation (const QByteArray &jsonData)
 
QUrl locationHistoryUrl (const Latitude::Granularity granularity, const int maxResults=0, const qlonglong maxTime=0, const qlonglong minTime=0)
 
QByteArray locationToJSON (const LocationPtr &location)
 
ObjectsList parseLocationJSONFeed (const QByteArray &jsonFeed, FeedData &feedData)
 
QUrl retrieveCurrentLocationUrl (const Latitude::Granularity granularity=Latitude::City)
 
QUrl retrieveLocationUrl (const qlonglong id, const Latitude::Granularity granularity=Latitude::City)
 

Detailed Description

Additional methods for implementing support for Google Latitude service.

You should never need to use these methods, unless implementing your own Job

Function Documentation

KGAPILATITUDE_DEPRECATED_EXPORT QString KGAPI2::LatitudeService::APIVersion ( )

Supported version of API.

Definition at line 140 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::deleteCurrentLocationUrl ( )

Returns URL for deleting user's current location.

Definition at line 160 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::deleteLocationUrl ( const qlonglong  id)

Returns URL to delete a specific location.

Parameters
id

Definition at line 224 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::insertCurrentLocationUrl ( )

Returns URL for uploading user's current location.

Definition at line 167 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::insertLocationUrl ( )

Returns URL for uploading a location.

Definition at line 217 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT LocationPtr KGAPI2::LatitudeService::JSONToLocation ( const QByteArray jsonData)

Parses JSON data into a Location object.

Parameters
jsonData

Definition at line 43 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::locationHistoryUrl ( const Latitude::Granularity  granularity,
const int  maxResults = 0,
const qlonglong  maxTime = 0,
const qlonglong  minTime = 0 
)

Returns URL for fetching history of user's locations.

Parameters
granularityPrecision of the coordinates
maxResultsMaximum amount of results to return
maxTimeMaximum timestamp since epoch (in ms)
minTimeMinimum timestamp since epoch (in ms)

Definition at line 174 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT QByteArray KGAPI2::LatitudeService::locationToJSON ( const LocationPtr location)

Serializes a Location object to JSON.

Parameters
location

Definition at line 55 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT ObjectsList KGAPI2::LatitudeService::parseLocationJSONFeed ( const QByteArray jsonFeed,
FeedData feedData 
)

Parses a JSON feed into list of Locations.

Parameters
jsonFeed
feedDataThe structure will be filled with additional data about the feed

Definition at line 88 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::retrieveCurrentLocationUrl ( const Latitude::Granularity  granularity = Latitude::City)

Returns URL for fetch current user's location.

Parameters
granularity

Definition at line 145 of file latitudeservice.cpp.

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::retrieveLocationUrl ( const qlonglong  id,
const Latitude::Granularity  granularity = Latitude::City 
)

URL for fetching a specific location.

Parameters
id
granularity;

Definition at line 202 of file latitudeservice.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 23:00:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.