VisioMove-Sample  2.1.3
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Pages
VgMyLocationProvider Class Referenceabstract

An abstract superclass for location providers. More...

Inheritance diagram for VgMyLocationProvider:
Inheritance graph

Public Types

enum  { AVAILABLE = 0, OUT_OF_SERVICE, TEMPORARILY_UNAVAILABLE, LOCATION_SERVICES_REQUIRE_AUTHORISATION }
 

Public Member Functions

virtual std::string getName ()=0
 Returns the name of the provider. More...
 
virtual void enable ()=0
 Requests provider starts sending location notifications. More...
 
virtual void disable ()=0
 Requests provider stops sending location notifications. More...
 
virtual bool isEnabled ()=0
 Returns true if the provider is enabled. More...
 
virtual bool supportsPosition ()=0
 Returns true if the provider supports position updates. More...
 
virtual bool supportsAccuracy ()=0
 Returns true if the provider supports accuracy updates. More...
 
virtual bool supportsContext ()=0
 Returns true if the provider supports context updates. More...
 
virtual bool supportsFloor ()=0
 Returns true if the provider supports floor updates. More...
 
virtual bool supportsHeading ()=0
 Returns true if the provider supports heading updates. More...
 
virtual ~VgMyLocationProvider ()
 

Detailed Description

An abstract superclass for location providers.

A location provider provides periodic reports on the geographical location of the device.

A good position provider shall:

  • communicate only with the VgMyLocationManager.
  • communicate via the main thread
  • call notifyFloorDidChange() before notifyPositionDidChange() when the device changes floor.
  • call notifyLocationProviderEnabled() when it's enabled
  • call notifyLocationProviderDisabled() when it's disabled
  • call notifyStatusDidChange() whenever it's status changes.

Member Enumeration Documentation

anonymous enum
Enumerator
AVAILABLE 
OUT_OF_SERVICE 
TEMPORARILY_UNAVAILABLE 
LOCATION_SERVICES_REQUIRE_AUTHORISATION 

Constructor & Destructor Documentation

virtual VgMyLocationProvider::~VgMyLocationProvider ( )
inlinevirtual

Member Function Documentation

virtual void VgMyLocationProvider::disable ( )
pure virtual

Requests provider stops sending location notifications.

If provider is registered with the location manager, a notifyLocationProviderDisabled() will be broadcast to associated listeners.

Implemented in VgMySimulatedLocationProvider.

virtual void VgMyLocationProvider::enable ( )
pure virtual

Requests provider starts sending location notifications.

If provider is registered with the location manager, a notifyLocationProviderEnabled() will be broadcast to associated listeners

Implemented in VgMySimulatedLocationProvider.

virtual std::string VgMyLocationProvider::getName ( )
pure virtual

Returns the name of the provider.

Implemented in VgMySimulatedLocationProvider.

virtual bool VgMyLocationProvider::isEnabled ( )
pure virtual

Returns true if the provider is enabled.

Implemented in VgMySimulatedLocationProvider.

virtual bool VgMyLocationProvider::supportsAccuracy ( )
pure virtual

Returns true if the provider supports accuracy updates.

Implemented in VgMySimulatedLocationProvider.

virtual bool VgMyLocationProvider::supportsContext ( )
pure virtual

Returns true if the provider supports context updates.

Implemented in VgMySimulatedLocationProvider.

virtual bool VgMyLocationProvider::supportsFloor ( )
pure virtual

Returns true if the provider supports floor updates.

Implemented in VgMySimulatedLocationProvider.

virtual bool VgMyLocationProvider::supportsHeading ( )
pure virtual

Returns true if the provider supports heading updates.

Implemented in VgMySimulatedLocationProvider.

virtual bool VgMyLocationProvider::supportsPosition ( )
pure virtual

Returns true if the provider supports position updates.

Implemented in VgMySimulatedLocationProvider.


The documentation for this class was generated from the following file:
VisioMove 2.1.3, Visioglobe® 2015