|
1 /* |
|
2 * Copyright (c) 2004-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: Virtual Phonebook group view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CGROUPVIEW_H |
|
20 #define CGROUPVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "CViewBase.h" |
|
24 |
|
25 namespace VPbkCntModel { |
|
26 |
|
27 /** |
|
28 * Virtual phonebook group view |
|
29 */ |
|
30 NONSHARABLE_CLASS( CGroupView ): public CViewBase |
|
31 { |
|
32 public: // Constructor and destructor |
|
33 /** |
|
34 * Creates new instance of this class |
|
35 * @param aObserver Observer that gets notifications |
|
36 * @param aParentStore Store where to get the groups |
|
37 * @param aSortOrder Order of the results in the view |
|
38 * @return A new instance of this class |
|
39 */ |
|
40 static CGroupView* NewLC( |
|
41 const CVPbkContactViewDefinition& aViewDefinition, |
|
42 MVPbkContactViewObserver& aObserver, |
|
43 CContactStore& aParentStore, |
|
44 const MVPbkFieldTypeList& aSortOrder); |
|
45 ~CGroupView(); |
|
46 |
|
47 private: // From CViewBase |
|
48 TVPbkContactViewType Type() const; |
|
49 void DoInitializeViewL( |
|
50 const CVPbkContactViewDefinition& aViewDefinition, |
|
51 RContactViewSortOrder& aViewSortOrder ); |
|
52 void DoTeardownView(); |
|
53 TBool DoChangeSortOrderL( |
|
54 const CVPbkContactViewDefinition& aViewDefinition, |
|
55 RContactViewSortOrder& aSortOrder ); |
|
56 |
|
57 private: // Implementation |
|
58 CGroupView(CContactStore& aParentStore); |
|
59 void ConstructL(const CVPbkContactViewDefinition& aViewDefinition, |
|
60 MVPbkContactViewObserver& aObserver, |
|
61 const MVPbkFieldTypeList& aSortOrder); |
|
62 |
|
63 private: // Data |
|
64 /// Ref: Reference to CViewBase::iView |
|
65 CContactNamedRemoteView* iRemoteView; |
|
66 }; |
|
67 |
|
68 } // namespace VPbkCntModel |
|
69 |
|
70 #endif // CGROUPVIEW_H |
|
71 |
|
72 // End of file |