VisioDevKit-Sample  v2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Pages
VgMyLocationListener Class Referenceabstract

Used for receiving notifications from the VgMyLocationManager when the location has changed. More...

Inheritance diagram for VgMyLocationListener:
Inheritance graph

Public Member Functions

virtual void notifyPositionDidChange (const std::string &pProvider, const VgEngine::VgPosition &pPosition)=0
 Called when the location has changed. More...
 
virtual void notifyFloorDidChange (const std::string &pProvider, const std::string &pFloor)=0
 Called when the floor has changed. More...
 
virtual void notifyAccuracyDidChange (const std::string &pProvider, double pAccuracy)=0
 Called when the accuracy has changed. More...
 
virtual void notifyContextDidChange (const std::string &pProvider, int pContext)=0
 Called when the context has changed. More...
 
virtual void notifyHeadingDidChange (const std::string &pProvider, double pHeading)=0
 Called when the heading has changed. More...
 
virtual void notifyStatusDidChange (const std::string &pProvider, int pStatus)=0
 Called when the status has changed. More...
 
virtual void notifyLocationProviderEnabled (const std::string &pProvider)=0
 Called when the provider is enabled. More...
 
virtual void notifyLocationProviderDisabled (const std::string &pProvider)=0
 Called when the provider is disabled. More...
 

Protected Member Functions

virtual ~VgMyLocationListener ()
 

Detailed Description

Used for receiving notifications from the VgMyLocationManager when the location has changed.

These methods are called if the VgMyLocationListener has been registered with the location manager service using the method, addListener().

Constructor & Destructor Documentation

virtual VgMyLocationListener::~VgMyLocationListener ( )
inlineprotectedvirtual

Member Function Documentation

virtual void VgMyLocationListener::notifyAccuracyDidChange ( const std::string &  pProvider,
double  pAccuracy 
)
pure virtual

Called when the accuracy has changed.

Parameters
pProviderThe location provider responsible for sending the notification.
pAccuracyThe new accuracy

Implemented in VgMyPositionTracker, VgMyLocationManager, VgMyAvatarDisplay, and VgMyAvatarDiscDisplay.

virtual void VgMyLocationListener::notifyContextDidChange ( const std::string &  pProvider,
int  pContext 
)
pure virtual

Called when the context has changed.

Parameters
pProviderThe location provider responsible for sending the notification.
pContextThe new context

Implemented in VgMyPositionTracker, VgMyLocationManager, VgMyAvatarDisplay, and VgMyAvatarDiscDisplay.

virtual void VgMyLocationListener::notifyFloorDidChange ( const std::string &  pProvider,
const std::string &  pFloor 
)
pure virtual

Called when the floor has changed.

Parameters
pProviderThe location provider responsible for sending the notification.
pFloorThe new floor

Implemented in VgMyPositionTracker, VgMyLocationManager, VgMyAvatarDisplay, and VgMyAvatarDiscDisplay.

virtual void VgMyLocationListener::notifyHeadingDidChange ( const std::string &  pProvider,
double  pHeading 
)
pure virtual

Called when the heading has changed.

Heading is the horizontal direction of travel of this device, and is not related to the device orientation.

Parameters
pProviderThe location provider responsible for sending the notification.
pHeadingThe new heading. The valid range for the heading is [0.0, 360.0]. Where 0.0 is North, and increasing values starts towards the East.

Implemented in VgMyPositionTracker, VgMyLocationManager, VgMyAvatarDisplay, and VgMyAvatarDiscDisplay.

virtual void VgMyLocationListener::notifyLocationProviderDisabled ( const std::string &  pProvider)
pure virtual

Called when the provider is disabled.

Parameters
pProviderThe location provider responsible for sending the notification.

Implemented in VgMyPositionTracker, VgMyLocationManager, VgMyAvatarDisplay, and VgMyAvatarDiscDisplay.

virtual void VgMyLocationListener::notifyLocationProviderEnabled ( const std::string &  pProvider)
pure virtual

Called when the provider is enabled.

Parameters
pProviderThe location provider responsible for sending the notification.

Implemented in VgMyPositionTracker, VgMyLocationManager, VgMyAvatarDisplay, and VgMyAvatarDiscDisplay.

virtual void VgMyLocationListener::notifyPositionDidChange ( const std::string &  pProvider,
const VgEngine::VgPosition &  pPosition 
)
pure virtual

Called when the location has changed.

Parameters
pProviderThe location provider responsible for sending the notification
pPositionThe new position

Implemented in VgMyPositionTracker, VgMyLocationManager, VgMyAvatarDisplay, and VgMyAvatarDiscDisplay.

virtual void VgMyLocationListener::notifyStatusDidChange ( const std::string &  pProvider,
int  pStatus 
)
pure virtual

Called when the status has changed.

Parameters
pProviderThe location provider responsible for sending the notification.
pStatusThe new status. See for available values.

Implemented in VgMyPositionTracker, VgMyLocationManager, VgMyAvatarDisplay, and VgMyAvatarDiscDisplay.


The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013