PositionErrorCode

#include <bb/location/PositionErrorCode>

To link against this class, add the following line to your .pro file: LIBS += -lQtLocationSubset

Error codes returned by the Location Manager in the event of a location request timeout.

The Location Manager returns these codes in the event of difficulty while try to get a position fix. There are two types of codes, warning and fatal. A warning code indicates that position updates have stopped but that the Location Manager will automatically resume updates if conditions change. A fatal code indicates that position updates have stopped and the Location Manager has abandoned the location request(s).


Overview

Public Types Index

enum Type

None 0x00000, FatalDisabled 0x00001, FatalNoLastKnownPosition 0x00002, FatalInsufficientProviders 0x00003, FatalInvalidRequest 0x00004, FatalUnknown 0x00005, FatalPermission 0x00006, WarnTimeout 0x10000, WarnLostTracking 0x10001, WarnStationary 0x10002

Public Types

Type

Error codes returned by the Location Manager in the event of a location request timeout.

None 0x00000

No error.

FatalDisabled 0x00001

Location services are disabled.

FatalNoLastKnownPosition 0x00002

There is no last known position on the device.

FatalInsufficientProviders 0x00003

There are insufficient available location technology providers to process your request.

FatalInvalidRequest 0x00004

One or more of the request parameters are invalid.

FatalUnknown 0x00005

An unknown service error has occurred.

FatalPermission 0x00006

The app does not have permission to access location services, that is, the access_location_services permission must be set in the app's bar-descriptor.xml, and the user must allow the app to have this permission.

WarnTimeout 0x10000

A timeout has occurred while processing your request.

The request will continue until your location is obtained.

WarnLostTracking 0x10001

The location fix has been lost due to insufficient coverage.

The request will continue until your location is reacquired.

WarnStationary 0x10002

The device is stationary.

No further updates until the device resumes movement. This code is encountered only if the stationaryDetection property of the QtLocationSubset::QGeoPositionInfoSource class is set to true.

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus