equal
deleted
inserted
replaced
22 #include <MPbk2ImageOperationObservers.h> |
22 #include <MPbk2ImageOperationObservers.h> |
23 #include <MVPbkSingleContactOperationObserver.h> |
23 #include <MVPbkSingleContactOperationObserver.h> |
24 #include <MVPbkContactStoreObserver.h> |
24 #include <MVPbkContactStoreObserver.h> |
25 #include <MVPbkOperationObserver.h> |
25 #include <MVPbkOperationObserver.h> |
26 #include <MVPbkContactViewBase.h> |
26 #include <MVPbkContactViewBase.h> |
27 #include <CPbkContactEngine.h> // for TPbkNameOrder |
|
28 #include <TPbk2ImageManagerParams.h> |
27 #include <TPbk2ImageManagerParams.h> |
|
28 #include <MPbkGlobalSetting.h> // For name order setting |
29 #include "easydialingcontactdata.h" |
29 #include "easydialingcontactdata.h" |
30 |
30 |
31 // FORWARD DECLARATIONS |
31 // FORWARD DECLARATIONS |
32 class CVPbkContactManager; |
32 class CVPbkContactManager; |
33 class MContactDataManagerObserver; |
33 class MContactDataManagerObserver; |
44 public CBase, |
44 public CBase, |
45 public MPbk2ImageGetObserver, |
45 public MPbk2ImageGetObserver, |
46 public MVPbkSingleContactOperationObserver, |
46 public MVPbkSingleContactOperationObserver, |
47 public MVPbkContactStoreObserver, |
47 public MVPbkContactStoreObserver, |
48 public MVPbkOperationErrorObserver, |
48 public MVPbkOperationErrorObserver, |
49 public MVPbkOperationResultObserver<MVPbkContactViewBase*> |
49 public MVPbkOperationResultObserver<MVPbkContactViewBase*>, |
|
50 public MPbkGlobalSettingObserver |
50 |
51 |
51 { |
52 { |
52 public: |
53 public: |
53 |
54 |
|
55 /** |
|
56 * Contact name display order |
|
57 */ |
|
58 enum TNameOrder |
|
59 { |
|
60 EFirstnameLastname, |
|
61 ELastnameFirstname |
|
62 }; |
|
63 |
|
64 public: |
54 |
65 |
55 /** |
66 /** |
56 * Constructor. |
67 * Constructor. |
57 */ |
68 */ |
58 CEasyDialingContactDataManager(CVPbkContactManager* aContactManager); |
69 CEasyDialingContactDataManager(CVPbkContactManager* aContactManager); |
178 * in the contact listbox. F.ex. "Firstname Surname\tCompanyname". |
189 * in the contact listbox. F.ex. "Firstname Surname\tCompanyname". |
179 * @param aIndex Index of the favourite in favourites view |
190 * @param aIndex Index of the favourite in favourites view |
180 * @param aNameOrder Name ordering to be used |
191 * @param aNameOrder Name ordering to be used |
181 * @return the newly created string (added to cleanupstack) |
192 * @return the newly created string (added to cleanupstack) |
182 */ |
193 */ |
183 HBufC* FavContactStringLC( TInt aIndex, CPbkContactEngine::TPbkNameOrder aNameOrder ); |
194 HBufC* FavContactStringLC( TInt aIndex, TNameOrder aNameOrder ); |
|
195 |
|
196 /** |
|
197 * @return Contact name display order |
|
198 */ |
|
199 TNameOrder NameOrder(); |
184 |
200 |
185 public: |
201 public: |
186 |
202 |
187 |
|
188 /** |
203 /** |
189 * From MPbk2ImageGetObserver. |
204 * From MPbk2ImageGetObserver. |
190 */ |
205 */ |
191 void Pbk2ImageGetComplete(MPbk2ImageOperation& aOperation, CFbsBitmap* aBitmap); |
206 void Pbk2ImageGetComplete(MPbk2ImageOperation& aOperation, CFbsBitmap* aBitmap); |
192 |
207 |
194 /** |
209 /** |
195 * From MPbk2ImageGetObserver. |
210 * From MPbk2ImageGetObserver. |
196 */ |
211 */ |
197 void Pbk2ImageGetFailed(MPbk2ImageOperation& aOperation, TInt aError); |
212 void Pbk2ImageGetFailed(MPbk2ImageOperation& aOperation, TInt aError); |
198 |
213 |
|
214 public: |
|
215 |
|
216 /** |
|
217 * From MPbkGlobalSettingObserver. |
|
218 */ |
|
219 void SettingChangedL( MPbkGlobalSetting::TPbkGlobalSetting aKey ); |
|
220 |
199 private: |
221 private: |
200 |
|
201 |
222 |
202 /** |
223 /** |
203 * From MVPbkSingleContactOperationObserver. |
224 * From MVPbkSingleContactOperationObserver. |
204 */ |
225 */ |
205 void VPbkSingleContactOperationComplete( |
226 void VPbkSingleContactOperationComplete( |
315 /** View to vpbk containing all favourite contacts. Owned. */ |
336 /** View to vpbk containing all favourite contacts. Owned. */ |
316 MVPbkContactViewBase* iFavsView; |
337 MVPbkContactViewBase* iFavsView; |
317 |
338 |
318 /** Virtual phonebook operation handle for getting favourites. Owned. */ |
339 /** Virtual phonebook operation handle for getting favourites. Owned. */ |
319 MVPbkContactOperationBase* iFavsOperation; |
340 MVPbkContactOperationBase* iFavsOperation; |
|
341 |
|
342 /** Phonebook settings interface. */ |
|
343 MPbkGlobalSetting* iPbkSettings; |
|
344 |
|
345 /** Contact name display order. */ |
|
346 TNameOrder iNameOrder; |
320 }; |
347 }; |
321 |
348 |
322 #endif //__EASYDIALINGTHUMBNAILMANAGER_H__ |
349 #endif //__EASYDIALINGTHUMBNAILMANAGER_H__ |