1 /* |
1 /* |
2 * Copyright (c) 2008-2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
43 /** |
43 /** |
44 * Two-phased constructor. |
44 * Two-phased constructor. |
45 * |
45 * |
46 * @param aObserver extension for the API |
46 * @param aObserver extension for the API |
47 */ |
47 */ |
48 static CESMRLocationPluginImpl* NewL(); |
48 static CESMRLocationPluginImpl* NewL(); |
49 |
49 |
50 /** |
50 /** |
51 * C++ Destructor. |
51 * C++ Destructor. |
52 */ |
52 */ |
53 virtual ~CESMRLocationPluginImpl(); |
53 virtual ~CESMRLocationPluginImpl(); |
54 |
54 |
55 public:// from base CESMRLocationPlugin ecom interface |
55 public:// from base CESMRLocationPlugin ecom interface |
56 void SetObserver ( MESMRLocationPluginObserver* aObserver ); |
56 void SetObserver ( MESMRLocationPluginObserver* aObserver ); |
57 |
57 |
58 public:// from base class MESMRLocationPlugin |
58 public:// from base class MESMRLocationPlugin |
59 void SelectFromMapL( const TDesC& aSearchQuery, const TDesC& aLocationUrl ); |
59 void SelectFromMapL( |
|
60 const TDesC& aSearchQuery, |
|
61 const TDesC& aLocationUrl ); |
|
62 void SelectFromMapL( |
|
63 const TDesC& aSearchQuery, |
|
64 const CCalGeoValue* aGeoValue ); |
60 void SearchFromMapL( const TDesC& aSearchQuery ); |
65 void SearchFromMapL( const TDesC& aSearchQuery ); |
61 void ShowOnMapL( const TDesC& aLocation, const TDesC& aLocationUrl ); |
66 void ShowOnMapL( const TDesC& aLocationUrl ); |
|
67 void ShowOnMapL( const CCalGeoValue& aGeoValue ); |
62 |
68 |
63 protected: // from base class CActive |
69 protected: // from base class CActive |
64 void DoCancel(); |
70 void DoCancel(); |
65 void RunL(); |
71 void RunL(); |
66 TInt RunError( TInt aError ); |
72 TInt RunError( TInt aError ); |
67 |
73 |
68 protected:// from base class MAknServerAppExitObserver |
74 protected:// from base class MAknServerAppExitObserver |
69 void HandleServerAppExit( TInt aReason ); |
75 void HandleServerAppExit( TInt aReason ); |
70 |
76 |
71 private: |
77 private: |
72 CESMRLocationPluginImpl(); |
78 CESMRLocationPluginImpl(); |
73 void ConstructL(); |
79 void ConstructL(); |
74 void CreateMapViewL(); |
80 void CreateMapViewL(); |
75 void HandleSelectFromMapCompletedL(); |
81 void HandleSelectFromMapCompletedL(); |
|
82 void SelectFromMapL( |
|
83 const TDesC& aSearchQuery, |
|
84 CPosLandmark* aLandmark ); |
|
85 void ShowLandmarkL( CPosLandmark* aLandmark ); |
|
86 CESMRUrlParserPlugin& UrlParserL(); |
76 |
87 |
77 private: // data |
88 private: // data |
78 |
89 |
79 MESMRLocationPluginObserver* iObserver; |
90 MESMRLocationPluginObserver* iObserver; |
80 |
91 |
81 /** |
92 /** |
82 * Map provider. |
93 * Map provider. |
83 * Own. |
94 * Own. |
84 */ |
95 */ |
85 CMnProvider* iProvider; |
96 CMnProvider* iProvider; |
86 |
97 |
87 /** |
98 /** |
88 * Map view. |
99 * Map view. |
89 * Own. |
100 * Own. |
90 */ |
101 */ |
91 CMnMapView* iMapView; |
102 CMnMapView* iMapView; |
92 |
103 |
93 /** |
104 /** |
94 * UrlparserPlugin |
105 * UrlparserPlugin |
95 * Own. |
106 * Own. |
96 */ |
107 */ |
97 CESMRUrlParserPlugin* iUrlParser; |
108 CESMRUrlParserPlugin* iUrlParser; |
98 |
109 |
99 /** |
110 /** |
100 * RPointerArray for landmarks to perform for example search from maps |
111 * RPointerArray for landmarks to perform for example search from maps |
101 * with search string functionality |
112 * with search string functionality |
102 * Own. |
113 * Own. |
103 */ |
114 */ |