|
1 /* |
|
2 * Copyright (c) 2002 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: Feature manager API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _FEATUREMANAGER_STUB_H |
|
20 #define _FEATUREMANAGER_STUB_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CFeatMgrTlsData; |
|
27 |
|
28 /** |
|
29 * Feature manager API stub. |
|
30 */ |
|
31 NONSHARABLE_CLASS( FeatureManager ) : public CBase |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * This must be called in the scope of the thread before calling |
|
36 * any other methods. It sets up TLS. Uninitialization is done |
|
37 * by calling the UnInitializeLibL() function. |
|
38 * |
|
39 * Leave conditions: out of memory. |
|
40 */ |
|
41 static void InitializeLibL(); |
|
42 |
|
43 /** |
|
44 * This must be called in the scope of the thread after calling |
|
45 * InitializeLibL(). It frees the allocated TLS. |
|
46 */ |
|
47 static void UnInitializeLib(); |
|
48 |
|
49 /** |
|
50 * Fetches information whether a certain feature is supported. |
|
51 * |
|
52 * @since 1.2 |
|
53 * @param aFeature feature ID |
|
54 * @return feature support status |
|
55 */ |
|
56 static TBool FeatureSupported( TInt aFeature ); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * C++ default constructor. |
|
62 * Prohibits instantiation of this class. |
|
63 */ |
|
64 FeatureManager(); |
|
65 }; |
|
66 |
|
67 #endif // _FEATUREMANAGER_STUB_H |
|
68 |