|
1 /* |
|
2 * Copyright (c) 2002-2007 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: Ordered composite contact view. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CVPBKORDEREDCOMPOSITECONTACTVIEW_H |
|
20 #define CVPBKORDEREDCOMPOSITECONTACTVIEW_H |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include "CVPbkCompositeContactView.h" |
|
24 |
|
25 /** |
|
26 * Virtual Phonebook Ordered composite contact view. |
|
27 */ |
|
28 NONSHARABLE_CLASS(CVPbkOrderedCompositeContactView) |
|
29 : public CVPbkCompositeContactView |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Creates a new instance of this class. |
|
34 * |
|
35 * @param aObserver Observer. |
|
36 * @param aSortOrder Sort order. |
|
37 * @return A new instance of this class. |
|
38 */ |
|
39 static CVPbkOrderedCompositeContactView* NewLC( |
|
40 MVPbkContactViewObserver& aObserver, |
|
41 const MVPbkFieldTypeList& aSortOrder ); |
|
42 |
|
43 private: // From MVPbkContactViewFiltering |
|
44 MVPbkContactViewBase* CreateFilteredViewLC( |
|
45 MVPbkContactViewObserver& aObserver, |
|
46 const MDesCArray& aFindWords, |
|
47 const MVPbkContactBookmarkCollection* aAlwaysIncludedContacts ); |
|
48 |
|
49 private: // From CVPbkCompositeContactView |
|
50 void DoBuildContactMappingL(); |
|
51 TInt DoHandleContactAdditionL( |
|
52 TInt aSubViewIndex, |
|
53 TInt aIndex ); |
|
54 |
|
55 private: // Implementation |
|
56 CVPbkOrderedCompositeContactView(); |
|
57 void ConstructL( |
|
58 const MVPbkFieldTypeList& aSortOrder ); |
|
59 static TInt CompareOrderedMappings( |
|
60 const TContactMapping& aLhs, |
|
61 const TContactMapping& aRhs ); |
|
62 }; |
|
63 |
|
64 #endif // CVPBKORDEREDCOMPOSITECONTACTVIEW_H |
|
65 |
|
66 // End of File |