|
1 /* |
|
2 * Copyright (c) 2007-2009 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef FEATMGR_H |
|
22 #define FEATMGR_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <e32svr.h> |
|
27 |
|
28 #define private public |
|
29 #include "videoiadupdatewrapper.h" |
|
30 #undef private |
|
31 |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class CFeatMgrTlsData; |
|
35 |
|
36 // DEFINES |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 // CONSTANTS |
|
41 int IsFeatureSupported; |
|
42 |
|
43 /** |
|
44 Feature manager API. |
|
45 Feature manager API offers the following functionality: |
|
46 - Inquire whether a certain static feature is supported. |
|
47 For usage, see example code at the end of the header file. |
|
48 |
|
49 @publishedPartner |
|
50 @deprecated Use the class CFeatureDiscovery for basic feature queries, or the |
|
51 class RFeatureControl for advanced feature queries and control. |
|
52 */ |
|
53 class FeatureManager |
|
54 { |
|
55 public: |
|
56 |
|
57 /** |
|
58 This must be called in the scope of the thread before calling |
|
59 any other methods. It sets up TLS. Uninitialization is done |
|
60 by calling the UnInitializeLib() function. |
|
61 |
|
62 @leave KErrNoMemory Memory allocation failure. |
|
63 |
|
64 @deprecated Use the class CFeatureDiscovery for basic feature queries, or the |
|
65 class RFeatureControl for advanced feature queries and control. |
|
66 */ |
|
67 static void InitializeLibL(){}; |
|
68 |
|
69 /** |
|
70 This must be called in the scope of the thread after calling |
|
71 InitializeLibL(). It frees the allocated TLS. Do not call UnInitializeLib() |
|
72 if InitalizeLibL() leaves. |
|
73 |
|
74 @deprecated Use the class CFeatureDiscovery for basic feature queries, or the |
|
75 class RFeatureControl for advanced feature queries and control. |
|
76 */ |
|
77 static void UnInitializeLib(){}; |
|
78 |
|
79 /** |
|
80 Fetches information whether a certain feature is supported. |
|
81 |
|
82 @param aFeature feature id. |
|
83 @return feature support status. |
|
84 |
|
85 @deprecated Use the class CFeatureDiscovery for basic feature queries, or the |
|
86 class RFeatureControl for advanced feature queries and control. |
|
87 */ |
|
88 static TBool FeatureSupported(TInt){ return IsFeatureSupported; }; |
|
89 |
|
90 }; |
|
91 |
|
92 #endif // FEATMGR_H |
|
93 |
|
94 // End of File |