equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 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 the License "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 * Declaration of class RFeatMgr. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef FEAT_MGR_H |
|
22 #define FEAT_MGR_H |
|
23 |
|
24 // INCLUDE FILES |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Feature manager wrapper. Provides leave-safe Feature Manager handling. |
|
32 */ |
|
33 NONSHARABLE_CLASS( RFeatMgr ) |
|
34 { |
|
35 public: // Construct / destruct |
|
36 |
|
37 /** |
|
38 * Constructor. |
|
39 */ |
|
40 RFeatMgr(); |
|
41 |
|
42 /** |
|
43 * Close object. Safe to call if not open. |
|
44 */ |
|
45 void Close(); |
|
46 |
|
47 /** |
|
48 * Open object. |
|
49 */ |
|
50 void OpenL(); |
|
51 |
|
52 public: // new methods |
|
53 |
|
54 /** |
|
55 * Query support for feature. |
|
56 * @param aFeature Feature id. |
|
57 * @return ETrue if feature is supported. |
|
58 */ |
|
59 TBool FeatureSupported( TInt aFeature ); |
|
60 |
|
61 private: // data |
|
62 |
|
63 TBool iOpen; ///< ETrue if open. |
|
64 }; |
|
65 |
|
66 #endif /* def TIMEOUT_H */ |