class CLbsRefLocationSourceBase : public CBase |
Defines the interface which needs to be implemented by the ECOM plugins which can return a reference position. The interface allows for a request to a reference position and for cancelling that request. The requests are asynchronous, the result being given through an observer interface. So when the implementation manages to obtain the reference position it returns it through the calls in MLbsRefLocationObserver . If there is an error retrieving the reference position then this error should be reported through the call-back. The interface allows also cancelling of the request made. If no request is outstanding nothing should be done. If a second request is made while one is already active then the second request can just be ignored (since the request doesn't really have any parameters and all it's doing is retrieving something that is stored, there is no need to pass through the second request when the first one is still outstanding).
The implementer of the interface needs to call the BaseConstructL() method as part of the construction procedure to ensure the object is build fully.
Public Member Functions | |
---|---|
~CLbsRefLocationSourceBase () | |
void | CancelRefPositionInfoRequest () |
IMPORT_C CLbsRefLocationSourceBase * | NewL ( MLbsRefLocationObserver &, TUid ) |
void | RequestRefPositionInfo () |
void | SetRequestorAddress (const TDesC &) |
IMPORT_C TVersion | Version () |
Protected Member Functions | |
---|---|
CLbsRefLocationSourceBase ( MLbsRefLocationObserver &) | |
IMPORT_C void | BaseConstructL () |
Private Member Functions | |
---|---|
IMPORT_C TAny * | ExtendedInterface ( TInt , TAny *, TAny *) |
Protected Attributes | |
---|---|
MLbsRefLocationObserver & | iObserver |
Private Attributes | |
---|---|
TUid | iDtor_ID_Key |
TAny * | iReserved |
TVersion | iVersion |
IMPORT_C | CLbsRefLocationSourceBase | ( | MLbsRefLocationObserver & | aObserver | ) | [protected] |
Constructor
MLbsRefLocationObserver & aObserver | Reference to the class that should receive all the callbacks |
IMPORT_C void | BaseConstructL | ( | ) | [protected] |
Base 2nd stage constructor. The implementer of the interface needs to call this method as part of the construction procedure to ensure the object is build fully.
void | CancelRefPositionInfoRequest | ( | ) | [pure virtual] |
Interface definition. This method is used to cancel a previous request for reference position information.
IMPORT_C TAny * | ExtendedInterface | ( | TInt | aFunctionNumber, |
TAny * | aPtr1, | |||
TAny * | aPtr2 | |||
) | [private, virtual] |
This method is used to allow polymorphic extensions to the API without breaking BC.
Reserved for future expansion.
IMPORT_C CLbsRefLocationSourceBase * | NewL | ( | MLbsRefLocationObserver & | aObserver, |
TUid | aEcomModuleId | |||
) | [static] |
Two-phase constructor that loads the right ECOM implementation of the interface and provides a pointer to it.
MLbsRefLocationObserver & aObserver | Reference to the class that should receive all the callbacks |
TUid aEcomModuleId | The UID of the ECOM implementation that should be loaded |
void | RequestRefPositionInfo | ( | ) | [pure virtual] |
Interface definition. This method is used to make a request for reference position information.
Making a request while another one is outstanding should not affect anything and can be ignored.
void | SetRequestorAddress | ( | const TDesC & | aAddress | ) | [pure virtual] |
Method used to set the address of the original requester of the reference location.
const TDesC & aAddress | The adress of the originator of the request |
IMPORT_C TVersion | Version | ( | ) | const |
Method which shows which version of the interface the implementation is using
MLbsRefLocationObserver & | iObserver | [protected] |
Observer which receives call-backs with the ref position information
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.