|
1 /* |
|
2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: CMnGeocodingCmdHandlerBase class declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MN_GEOCODINGCMDHANDLERBASE_H |
|
20 #define MN_GEOCODINGCMDHANDLERBASE_H |
|
21 |
|
22 #include "mnaiwcommandhandlerbase.h" |
|
23 |
|
24 class CMnGeocoder; |
|
25 |
|
26 /** \internal |
|
27 * Base class for Geocoding-related AIW commands |
|
28 */ |
|
29 class CMnGeocodingCmdHandlerBase : public CMnAiwCommandHandlerBase |
|
30 { |
|
31 public: |
|
32 ~CMnGeocodingCmdHandlerBase(); |
|
33 |
|
34 protected: |
|
35 CMnGeocodingCmdHandlerBase( CMnProvider& aProvider ); |
|
36 |
|
37 void ConstructL( TRunMode aRunMode ); |
|
38 |
|
39 CMnGeocoder& Geocoder(); |
|
40 |
|
41 /** Reads contents of EGenericParamMnGeocodingOptions parameter */ |
|
42 void ReadGeocodingOptionsL( |
|
43 const TAiwGenericParam& aParam, |
|
44 TMnAiwGeocodingOptionsParam& aGeoOptions ); |
|
45 |
|
46 public: // from CMnAiwCommandHandlerBase |
|
47 |
|
48 void SetExitObserverL( MMnProviderExitCallback& aExitCallback ); |
|
49 |
|
50 protected: // from CMnAiwCommandHandlerBase |
|
51 |
|
52 void HandleAiwParamL( const TAiwGenericParam& aParam ); |
|
53 void HandleAiwParamLandmarksL( RArray<TPtrC8>& aLandmarkDataList ); |
|
54 void ResetParametersL(); |
|
55 |
|
56 protected: |
|
57 TPtrC8 iLandmarkData; |
|
58 |
|
59 private: |
|
60 CMnGeocoder* iGeocoder; |
|
61 }; |
|
62 |
|
63 #endif // MN_GEOCODINGCMDHANDLERBASE_H |