1 /* |
|
2 * Copyright (c) 2007-2008 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: This class manages the runtime variated features |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_FILEMANAGERFEATUREMANAGER_H |
|
21 #define C_FILEMANAGERFEATUREMANAGER_H |
|
22 |
|
23 #include <e32std.h> |
|
24 |
|
25 /** |
|
26 * This class manages the runtime variated features |
|
27 * |
|
28 * @lib FileManagerEngine.lib |
|
29 * @since 3.2 |
|
30 */ |
|
31 NONSHARABLE_CLASS(CFileManagerFeatureManager) : public CBase |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 */ |
|
37 static CFileManagerFeatureManager* NewL(); |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 virtual ~CFileManagerFeatureManager(); |
|
43 |
|
44 /** |
|
45 * Checks if feature is supported |
|
46 * @since 3.2 |
|
47 */ |
|
48 IMPORT_C TBool IsDrmFullSupported() const; |
|
49 |
|
50 /** |
|
51 * Checks if feature is supported |
|
52 * @since 3.2 |
|
53 */ |
|
54 IMPORT_C TBool IsHelpSupported() const; |
|
55 |
|
56 /** |
|
57 * Checks if feature is supported |
|
58 * @since 3.2 |
|
59 */ |
|
60 IMPORT_C TBool IsIrdaSupported() const; |
|
61 |
|
62 /** |
|
63 * Checks if feature is supported |
|
64 * @since 3.2 |
|
65 */ |
|
66 IMPORT_C TBool IsRemoteStorageFwSupported() const; |
|
67 |
|
68 /** |
|
69 * Checks if feature is supported |
|
70 * @since 3.2 |
|
71 */ |
|
72 IMPORT_C TBool IsMmcPassWdSupported() const; |
|
73 |
|
74 /** |
|
75 * Checks if feature is supported |
|
76 * @since 3.2 |
|
77 */ |
|
78 IMPORT_C TBool IsWesternVariant() const; |
|
79 |
|
80 /** |
|
81 * Checks if feature is supported |
|
82 * @since 3.2 |
|
83 */ |
|
84 IMPORT_C TBool IsMmcSwEjectSupported() const; |
|
85 |
|
86 /** |
|
87 * Checks if feature specified by TFileManagerFeatures is supported |
|
88 * @since 3.2 |
|
89 */ |
|
90 IMPORT_C TBool IsFeatureSupported( TInt aFileManagerFeature ) const; |
|
91 |
|
92 /** |
|
93 * Checks if the application is in embedded mode |
|
94 * @since 3.2 |
|
95 */ |
|
96 IMPORT_C TBool IsEmbedded() const; |
|
97 |
|
98 private: |
|
99 /** |
|
100 * C++ default constructor. |
|
101 */ |
|
102 CFileManagerFeatureManager(); |
|
103 |
|
104 /** |
|
105 * By default Symbian 2nd phase constructor is private. |
|
106 */ |
|
107 void ConstructL(); |
|
108 |
|
109 private: // Data |
|
110 TBool iDrmFullSupported; |
|
111 TBool iHelpSupported; |
|
112 TBool iIrdaSupported; |
|
113 TBool iRemoteStorageFwSupported; |
|
114 TBool iMmcPassWdSupported; |
|
115 TBool iWesternVariant; |
|
116 TBool iMmcSwEjectSupported; |
|
117 TBool iEmbedded; |
|
118 TInt iFileManagerFeatures; |
|
119 }; |
|
120 |
|
121 #endif // C_FILEMANAGERFEATUREMANAGER_H |
|