|
1 /* |
|
2 * Copyright (c) 2006 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: |
|
15 * CPsetVariationProxy class is proxy class for |
|
16 * central repository variation |
|
17 * (Call waiting/distinguish between not provisioned and not activated). |
|
18 * |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef PSETVARIATIONPROXY_H |
|
24 #define PSETVARIATIONPROXY_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <e32base.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CRepository; |
|
31 |
|
32 // CONSTANTS |
|
33 const TUint KCallWaitingDistiquishNotProvisioned = 0x00000001; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 /** |
|
37 * CPsetVariationProxy class is proxy class for central repository variation |
|
38 * @lib phonesettings.lib |
|
39 * @since 1.0 |
|
40 */ |
|
41 NONSHARABLE_CLASS (CPSetVariationProxy): public CBase |
|
42 { |
|
43 public: //constructor & destructor |
|
44 |
|
45 /* |
|
46 * Symbian OS 2-phase Constructor. |
|
47 * |
|
48 * @param aUid identifing the central repository UID. |
|
49 * @param aId central repository ID. |
|
50 * @return the created instance. |
|
51 */ |
|
52 static CPSetVariationProxy* NewL( const TUid& aUid, |
|
53 const TUint aId ); |
|
54 |
|
55 /* Destructor */ |
|
56 ~CPSetVariationProxy(); |
|
57 |
|
58 public: |
|
59 |
|
60 /** |
|
61 * Check from member variable 'iFeature' is the requested feature active. |
|
62 * |
|
63 * @param aFeature is uid for used central repository variable. |
|
64 * @return returns TBool type ETrue/EFalse is current feature enabled or not |
|
65 */ |
|
66 TBool IsFeatureEnabled( TUint aFeature ) const; |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * Constructor |
|
72 * |
|
73 * Open CenRep, read data into 'iFeatures' and close CenRep |
|
74 */ |
|
75 void ConstructL( const TUid& aUid, const TUint aId ); |
|
76 |
|
77 private: |
|
78 |
|
79 /* Default constructor */ |
|
80 CPSetVariationProxy(); |
|
81 |
|
82 private: |
|
83 |
|
84 // Saves cen rep data readed in ConstructL() |
|
85 TInt iFeature; |
|
86 }; |
|
87 |
|
88 #endif // PSETVARIATIONPROXY_H |
|
89 |