class CMnMapViewServiceBase : public CMnServiceBase |
Provider Application must derive its MapView service class from this one. This base implementation hides IPC communication details and provides native methods for accessing various map parameters, specified by client.
Provider Application must return pointer to instance of its class, derived from this class, in response to CAknAppService::CreateServiceL() call, if given parameter is KMnAppMapViewService.
This class defines handlers of particular requests from client as pure virtual methods, which derived class must implement. The parameters, which client application may specify in CMnMapView are accessible via other methods of this class. Provider Application must obey these parameters and use them as specified in CMnMapView .
See parent CMnServiceBase class documentation for other details.
Public Member Functions | |
---|---|
IMPORT_C TReal | AreaRadius() |
IMPORT_C void | CompleteSelectionRequest(TInt) |
IMPORT_C void | CompleteSelectionRequest(TPosLmItemId, TInt) |
IMPORT_C void | CompleteSelectionRequestL(const CPosLandmark &) |
IMPORT_C CMnMapView::TCurrentLocationOption | CurrentLocationOption() |
IMPORT_C void | GetAreaCentralPoint(TCoordinate &) |
IMPORT_C TBool | IsAreaCentralPointSet() |
IMPORT_C TArray< const CPosLandmark * > | LandmarksToShow() |
IMPORT_C TArray< const HBufC * > | LandmarksToShowDatabases() |
IMPORT_C TArray< TPosLmItemId > | LinkedLandmarksToShow(TInt) |
IMPORT_C CMnMapView::TOptions | Options() |
IMPORT_C TPtrC | SelectionRequestText() |
Protected Member Functions | |
---|---|
CMnMapViewServiceBase() | |
~CMnMapViewServiceBase() | |
IMPORT_C void | BaseConstructL() |
void | HandleSelectFromMapL() |
void | HandleShowCurrentLocationL() |
void | HandleShowMapL() |
IMPORT_C void | ServiceL(const RMessage2 &) |
Private Member Functions | |
---|---|
void | CleanSelectionResult() |
TInt | FindDatabase(const TDesC &) |
void | HandleAddLandmarkIdsToShowL(const RMessage2 &) |
void | HandleAddLandmarksToShowL(const RMessage2 &) |
void | HandleGetSelectionResultDbUriL(const RMessage2 &) |
void | HandleGetSelectionResultLandmarkL(const RMessage2 &) |
void | ResetLandmarks() |
void | UnpackOptionsL(const RMessage2 &) |
void | UnpackSelectionRequestTextL(const RMessage2 &) |
void | VerifySelectionRequestL() |
Inherited Enumerations | |
---|---|
CSession2:TPanicNo |
Inherited Attributes | |
---|---|
CMnServiceBase::iMessage |
IMPORT_C TReal | AreaRadius | ( | ) |
Implementation has to obey this setting as long as this is within allowed range. If it is too low and cannot be used, the implementation must select lowest possible radius. If this value is KAutomaticRadius, it is considered not set.
IMPORT_C void | BaseConstructL | ( | ) | [protected] |
This method must be called from derived class' ConstructL to allow internal initialization of this class.
IMPORT_C void | CompleteSelectionRequest | ( | TInt | aLandmarkIndex | ) |
Implementation must call this method to signal completion of Select From Map request. This override is used if one of not linked landmarks has been selected by user.
TInt aLandmarkIndex | Index of not linked landmark containing information about user-selected location. As much information as possible shall be set. |
IMPORT_C void | CompleteSelectionRequest | ( | TPosLmItemId | aLandmarkId, |
TInt | aDbIndex | |||
) |
Implementation must call this method to signal completion of Select From Map request. This override is used if one of linked landmarks, passed by client has been selected by user.
TPosLmItemId aLandmarkId | ID of landmark selected by user. |
TInt aDbIndex | Index of database where landmark specified by aLandmarkId belongs to. |
IMPORT_C void | CompleteSelectionRequestL | ( | const CPosLandmark & | aLandmark | ) |
Implementation must call this method to signal completion of Select From Map request. This override is used if free location from map has been selected by user.
const CPosLandmark & aLandmark | Landmark containing information about user-selected location. As much information as possible shall be set. |
IMPORT_C CMnMapView::TCurrentLocationOption | CurrentLocationOption | ( | ) |
This option must be utilized in request handlers as specified in CMnMapView .
TInt | FindDatabase | ( | const TDesC & | aUri | ) | [private] |
const TDesC & aUri |
IMPORT_C void | GetAreaCentralPoint | ( | TCoordinate & | aCentralPoint | ) |
If central point is not set, this coordinate has latitude and longitude set to NaN.
TCoordinate & aCentralPoint | Central point of map view area, specified by client. |
void | HandleAddLandmarkIdsToShowL | ( | const RMessage2 & | aMessage | ) | [private] |
const RMessage2 & aMessage |
void | HandleAddLandmarksToShowL | ( | const RMessage2 & | aMessage | ) | [private] |
const RMessage2 & aMessage |
void | HandleGetSelectionResultDbUriL | ( | const RMessage2 & | aMessage | ) | [private] |
const RMessage2 & aMessage |
void | HandleGetSelectionResultLandmarkL | ( | const RMessage2 & | aMessage | ) | [private] |
const RMessage2 & aMessage |
void | HandleSelectFromMapL | ( | ) | [protected, pure virtual] |
Derived class must implement this method obeying specification of CMnMapView::SelectFromMapL and if KMnSvcFeatureSelectFromMap feature is specified in its SERVICE_INFO.
Landmarks returned by LandmarksToShow and LinkedLandmarksToShow shall be shown on map.
This is asynchronous request. It must be completed (in successful case) with one of CompleteSelectionRequest overloads.
void | HandleShowCurrentLocationL | ( | ) | [protected, pure virtual] |
Derived class must implement this method obeying specification of CMnMapView::ShowCurrentLocationL and if KMnSvcFeatureShowMap feature is specified in its SERVICE_INFO.
Landmarks returned by LandmarksToShow and LinkedLandmarksToShow shall be shown on map.
This is synchronous request. Client's request will be completed when this method exits, therefore it should exit immediately after map view is shown.
void | HandleShowMapL | ( | ) | [protected, pure virtual] |
Derived class must implement this method obeying specification of CMnMapView::ShowMapL and if KMnSvcFeatureShowMap feature is specified in its SERVICE_INFO.
Landmarks returned by LandmarksToShow and LinkedLandmarksToShow shall be shown on map.
This is synchronous request. Client's request will be completed when this method exits, therefore it should exit immediately after map view is shown.
IMPORT_C TBool | IsAreaCentralPointSet | ( | ) |
If central point is not set, GetAreaCentralPoint returns coordinate with latitude and longitude set to NaN.
IMPORT_C TArray< const CPosLandmark * > | LandmarksToShow | ( | ) |
All these landmarks shall be shown on map.
IMPORT_C TArray< TPosLmItemId > | LinkedLandmarksToShow | ( | TInt | aDbIndex | ) |
All these landmarks shall be shown on map.
TInt aDbIndex | Index of landmark database, which contains returned landmarks. Must be valid for array returned from LandmarksToShowDatabases() . |
IMPORT_C CMnMapView::TOptions | Options | ( | ) |
These options must be utilized in request handlers as specified in CMnMapView .
IMPORT_C TPtrC | SelectionRequestText | ( | ) |
This text is used in HandleSelectFromMapL().
IMPORT_C void | ServiceL | ( | const RMessage2 & | aMessage | ) | [protected, virtual] |
Override of CSession2::ServiceL(). If further overridden, this function must be base-called.
const RMessage2 & aMessage | The client message |
void | UnpackOptionsL | ( | const RMessage2 & | aMsg | ) | [private] |
const RMessage2 & aMsg |
void | UnpackSelectionRequestTextL | ( | const RMessage2 & | aMsg | ) | [private] |
const RMessage2 & aMsg |
CMnMapView::TCurrentLocationOption | iCurrentLocationOption | [private] |
RPointerArray< const CPosLandmark > | iLandmarks | [private] |
RPointerArray< CLinkedLandmarksList > | iLinkedLandmarksLists | [private] |
RPointerArray< const HBufC > | iTempDatabaseList | [private] |
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.