|
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: The virtual phonebook Cntmodel remote view settings. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef VPBKCNTMODELREMOTEVIEWPREFERENCES_H |
|
20 #define VPBKCNTMODELREMOTEVIEWPREFERENCES_H |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <cntviewbase.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CVPbkContactViewDefinition; |
|
28 |
|
29 namespace VPbkCntModel { |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 /** |
|
34 * Virtual Phonebook Cntmodel all contacts view remote view name. |
|
35 */ |
|
36 _LIT( KVPbkAllContactsViewName, "AllContacts" ); |
|
37 |
|
38 /** |
|
39 * Virtual Phonebook Cntmodel all contacts view preferences. |
|
40 */ |
|
41 const TContactViewPreferences KVPbkDefaultContactViewPrefs = |
|
42 static_cast<TContactViewPreferences> |
|
43 ( EContactsOnly | EUnSortedAtEnd | ESingleWhiteSpaceIsEmptyField ); |
|
44 |
|
45 /** |
|
46 * Virtual Phonebook Cntmodel all groups view remote view name. |
|
47 */ |
|
48 _LIT(KVPbkAllGroupsViewName, "AllGroups"); |
|
49 |
|
50 /** |
|
51 * Virtual Phonebook Cntmodel all groups view preferences. |
|
52 */ |
|
53 const TContactViewPreferences KVPbkDefaultGroupsViewPrefs = |
|
54 static_cast<TContactViewPreferences> |
|
55 (EGroupsOnly | EUnSortedAtEnd | ESingleWhiteSpaceIsEmptyField); |
|
56 |
|
57 // FUNCTIONS |
|
58 |
|
59 /** |
|
60 * @return ETrue if aViewDefinition is a remote view definition. |
|
61 */ |
|
62 TBool RemoteViewDefinition( |
|
63 const CVPbkContactViewDefinition& aViewDefinition ); |
|
64 |
|
65 /** |
|
66 * @return aViewDefinition.Name() if it's not empty, otherise |
|
67 * the default name of the remove view. |
|
68 */ |
|
69 const TDesC& RemoteViewName( |
|
70 const CVPbkContactViewDefinition& aViewDefinition ); |
|
71 |
|
72 } // namespace VPbkCntModel |
|
73 |
|
74 #endif // VPBKCNTMODELREMOTEVIEWPREFERENCES_H |
|
75 |
|
76 //End of file |