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

◆ APIVersion()

KGAPILATITUDE_DEPRECATED_EXPORT QString KGAPI2::LatitudeService::APIVersion ( )

Supported version of API.

Definition at line 127 of file latitudeservice.cpp.

◆ deleteCurrentLocationUrl()

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::deleteCurrentLocationUrl ( )

Returns URL for deleting user's current location.

Definition at line 147 of file latitudeservice.cpp.

◆ deleteLocationUrl()

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

Returns URL to delete a specific location.

Parameters
id

Definition at line 210 of file latitudeservice.cpp.

◆ insertCurrentLocationUrl()

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::insertCurrentLocationUrl ( )

Returns URL for uploading user's current location.

Definition at line 154 of file latitudeservice.cpp.

◆ insertLocationUrl()

KGAPILATITUDE_DEPRECATED_EXPORT QUrl KGAPI2::LatitudeService::insertLocationUrl ( )

Returns URL for uploading a location.

Definition at line 203 of file latitudeservice.cpp.

◆ JSONToLocation()

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

Parses JSON data into a Location object.

Parameters
jsonData

Definition at line 30 of file latitudeservice.cpp.

◆ locationHistoryUrl()

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 161 of file latitudeservice.cpp.

◆ locationToJSON()

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

Serializes a Location object to JSON.

Parameters
location

Definition at line 42 of file latitudeservice.cpp.

◆ parseLocationJSONFeed()

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 76 of file latitudeservice.cpp.

◆ retrieveCurrentLocationUrl()

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 132 of file latitudeservice.cpp.

◆ retrieveLocationUrl()

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 188 of file latitudeservice.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:08:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.