#include <lbsmovementevent.h>
Public Types | |
| enum | TLbsMovementEventType { EMovementEventUnknown = 0, EMovementEventStationary = 1, EMovementEventMoving = 2, EMovementEventWalking = 4, EMovementEventLastBit = 1 << 31 } |
Public Member Functions | |
| IMPORT_C TLbsMovementEventType | MovementEvent () const |
| IMPORT_C TTime | SystemTimeStamp () const |
| IMPORT_C void | SetMovementEvent (TLbsMovementEventType aEvent) |
| IMPORT_C TInt | SetSystemTimeStamp (TTime aTimeStamp) |
TLbsMovementEvent - Contains the movement status of the device.
To receive movement events, the application must add an movement event observer using CLbsLocator::AddMovementObserverL() and implement the callback method MLbsMovementObserver::HandleMovementUpdate().
To begin receiving updates, the application should call CLbsLocator::StartUpdatesL(). Although this only needs to be called once irrespective of the number or type of observers.
Not all profiles support movement events. Some profiles only support a limited subset of the possible event types. See CLbsLocator::SetLocatorProfile() for information about the movement events supported by each profile.
TLbsMovementEventType - Contain a bit mask of movement event types. For example, the application be notified that both walking and general movement has been detected. Note: This enum may be expanded to include other types of events related to movement.
| EXPORT_C TLbsMovementEvent::TLbsMovementEventType TLbsMovementEvent::MovementEvent | ( | ) | const |
Retrieves a bit mask of detected movement events.
see TLbsMovementEventType
| EXPORT_C void TLbsMovementEvent::SetMovementEvent | ( | TLbsMovementEventType | aEvent | ) |
Sets a bit mask of detected movement events.
| [in] | aEvent | A bit mask of detected movement events. |
| EXPORT_C TInt TLbsMovementEvent::SetSystemTimeStamp | ( | TTime | aTimeStamp | ) |
Sets the system time when the movement event was detected.
| [in] | aTimeStamp | The system time when the movement event was detected. The value cannot be zero. |
| EXPORT_C TTime TLbsMovementEvent::SystemTimeStamp | ( | ) | const |
Retrieves the system time when the movement event was generated.
If the time stamp has not been assigned, a TTime of "zero" will be returned.