|
1 /* |
|
2 * Copyright (c) 2005-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 Local variation manager. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CVPBKLOCALVARIATIONMANAGER_H |
|
20 #define CVPBKLOCALVARIATIONMANAGER_H |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include <e32base.h> |
|
24 #include <VPbkVariant.hrh> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CRepository; |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Virtual Phonebook Local variation manager. |
|
34 */ |
|
35 class CVPbkLocalVariationManager : |
|
36 public CBase |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * Creates a new instance of this class. |
|
41 */ |
|
42 IMPORT_C static CVPbkLocalVariationManager* NewL(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 ~CVPbkLocalVariationManager(); |
|
48 |
|
49 /** |
|
50 * Used to check is the feature defined by aFeature on or off. |
|
51 * @param aFeature the feature to check |
|
52 * @return ETrue if the feature is on, EFalse otherwise |
|
53 */ |
|
54 IMPORT_C TBool LocallyVariatedFeatureEnabled(TVPbkLocalVariantFlags aFeature); |
|
55 |
|
56 private: // implementation |
|
57 CVPbkLocalVariationManager(); |
|
58 void ConstructL(); |
|
59 TInt DoGetLocalVariationFlags(); |
|
60 |
|
61 private: // data |
|
62 // Own: Central repository |
|
63 CRepository* iRepository; |
|
64 /// Own: local variation flags |
|
65 TInt iLocalVariationFlags; |
|
66 |
|
67 }; |
|
68 |
|
69 #endif // CVPBKLOCALVARIATIONMANAGER_H |
|
70 |
|
71 // End of File |