equal
deleted
inserted
replaced
34 class CPosLandmark; |
34 class CPosLandmark; |
35 class MPbk2ContactEditorControl; |
35 class MPbk2ContactEditorControl; |
36 class MPbk2ContactEditorControlExtension; |
36 class MPbk2ContactEditorControlExtension; |
37 class MVPbkStoreContactField; |
37 class MVPbkStoreContactField; |
38 class TLocality; |
38 class TLocality; |
39 |
39 class CMnMapView; |
|
40 |
|
41 enum TCurrentMapLaunchedByState |
|
42 { |
|
43 EMapNone = 1, |
|
44 EMapAssignFromMaps, |
|
45 EMapShowOnMaps |
|
46 }; |
40 // CLASS DECLARATION |
47 // CLASS DECLARATION |
41 |
48 |
42 /** |
49 /** |
43 * Phonebook 2 show on map command object. |
50 * Phonebook 2 show on map command object. |
44 */ |
51 */ |
45 class CPmapCmd : public CBase, |
52 class CPmapCmd : public CActive, |
46 public MPbk2Command, |
53 public MPbk2Command, |
47 public MVPbkContactObserver |
54 public MVPbkContactObserver |
48 { |
55 { |
49 public: // Constructors and destructor |
56 public: // Constructors and destructor |
50 |
57 |
74 /** |
81 /** |
75 * Destructor. |
82 * Destructor. |
76 */ |
83 */ |
77 ~CPmapCmd(); |
84 ~CPmapCmd(); |
78 |
85 |
|
86 // CActive-related methods |
|
87 /** |
|
88 * RunL method to handle the user selection |
|
89 */ |
|
90 void RunL(); |
|
91 |
|
92 /** |
|
93 * Cancel method to handle the user selection |
|
94 */ |
|
95 void DoCancel(); |
|
96 |
|
97 /** |
|
98 * Function to handle any errors in async request |
|
99 * @param aError Error Code |
|
100 */ |
|
101 TInt RunError( TInt aError ); |
|
102 |
|
103 /** |
|
104 * Disconnects from provider, when operation is completed |
|
105 */ |
|
106 void Reset(); |
79 public: //From MVPbkContactObserver |
107 public: //From MVPbkContactObserver |
80 void ContactOperationCompleted( TContactOpResult aResult ); |
108 void ContactOperationCompleted( TContactOpResult aResult ); |
81 void ContactOperationFailed( |
109 void ContactOperationFailed( |
82 TContactOp aOpCode, |
110 TContactOp aOpCode, |
83 TInt aErrorCode, |
111 TInt aErrorCode, |
84 TBool aErrorNotified); |
112 TBool aErrorNotified); |
85 |
113 |
86 public: // From MPbk2Command |
114 public: // From MPbk2Command |
87 void ExecuteLD(); |
115 void ExecuteLD(); |
|
116 void ExecuteL(); |
88 void AddObserver( |
117 void AddObserver( |
89 MPbk2CommandObserver& aObserver ); |
118 MPbk2CommandObserver& aObserver ); |
90 void ResetUiControl( |
119 void ResetUiControl( |
91 MPbk2ContactUiControl& aUiControl ); |
120 MPbk2ContactUiControl& aUiControl ); |
92 |
121 |
232 * |
261 * |
233 * @param aField Store field. |
262 * @param aField Store field. |
234 * @return Address group ID or EPbk2FieldGroupIdNone. |
263 * @return Address group ID or EPbk2FieldGroupIdNone. |
235 */ |
264 */ |
236 TPbk2FieldGroupId GetFieldGroupL( MVPbkStoreContactField& aField ); |
265 TPbk2FieldGroupId GetFieldGroupL( MVPbkStoreContactField& aField ); |
|
266 |
|
267 /** |
|
268 * Handle the selection of map which was launched from Show On Map option. |
|
269 */ |
|
270 void HandleSelectiOnShowOnMapsL(); |
|
271 |
|
272 /** |
|
273 * Handle the selection of map which was launched from Assign From Maps option. |
|
274 */ |
|
275 void HandleSelectiOnAssignFromMapsL(); |
237 |
276 |
238 private: // Data |
277 private: // Data |
239 /// Ref: Contact editor control |
278 /// Ref: Contact editor control |
240 MPbk2ContactEditorControl* iEditorControl; |
279 MPbk2ContactEditorControl* iEditorControl; |
241 /// Ref: Contact UI control |
280 /// Ref: Contact UI control |
244 MVPbkStoreContact* iContact; |
283 MVPbkStoreContact* iContact; |
245 /// Ref: Command observer |
284 /// Ref: Command observer |
246 MPbk2CommandObserver* iObserver; |
285 MPbk2CommandObserver* iObserver; |
247 /// Own: Map View Provider |
286 /// Own: Map View Provider |
248 CMnProvider* iMapViewProvider; |
287 CMnProvider* iMapViewProvider; |
|
288 /// Own: Map View |
|
289 CMnMapView* iMapView; |
249 /// Own: Is in editor address view? |
290 /// Own: Is in editor address view? |
250 TBool iAddressView; |
291 TBool iAddressView; |
251 /// Own: command id |
292 /// Own: command id |
252 TInt iCommandId; |
293 TInt iCommandId; |
253 /// Own: Is in editor address view? |
294 /// Own: Is in editor address view? |
254 TBool iAddressUpdatePrompt; |
295 TBool iAddressUpdatePrompt; |
|
296 /// Own: Current map launched is by which option |
|
297 TCurrentMapLaunchedByState iCurrentMapLaunchedByState; |
|
298 /// Own: Current AddressType |
|
299 TVPbkFieldTypeParameter iAddressType; |
|
300 /// Own: Is already address is there? |
|
301 TBool iNoAddress; |
255 }; |
302 }; |
256 |
303 |
257 #endif // CPMAPCMD_H |
304 #endif // CPMAPCMD_H |
258 |
305 |
259 // End of File |
306 // End of File |