|
1 /* |
|
2 * Copyright (c) 2007 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: Video Telephone feature variation class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_VTUIFEATUREVARIATION_H |
|
20 #define T_VTUIFEATUREVARIATION_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <featmgr.h> |
|
24 |
|
25 /** |
|
26 * TVtUiVariationBase |
|
27 * |
|
28 * Base class for feature variation classes. |
|
29 * |
|
30 * @since S60 v3.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS( TVtUiFeatureVariationBase ) |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Returns variation feature ID. |
|
39 */ |
|
40 virtual TUint32 FeatureId() const = 0; |
|
41 |
|
42 protected: |
|
43 |
|
44 /** |
|
45 * Return whether or not feature is supported by Featuremanager. |
|
46 * @return ETrue if feature is supported by Featuremanager. |
|
47 */ |
|
48 virtual TBool IsFeatureSupported( const TUint32 aId) const; |
|
49 |
|
50 }; |
|
51 |
|
52 /** |
|
53 * TVtUiHelpVariation |
|
54 * |
|
55 * Help variation class. Uses Featuremanager to verify if feture is |
|
56 * supported. This class should be instanced only once and same instance |
|
57 * should be passesd as reference to modules that need this feature variation |
|
58 * information. |
|
59 * @since S60 v3.2 |
|
60 */ |
|
61 NONSHARABLE_CLASS( TVtUiHelpVariation ) : public TVtUiFeatureVariationBase |
|
62 { |
|
63 |
|
64 public: |
|
65 |
|
66 /** |
|
67 * Return whether or help variation is supported. |
|
68 * |
|
69 * @return ETrue if help supported. |
|
70 */ |
|
71 TBool IsHelpSupported() const; |
|
72 |
|
73 private: // from TVtUiFeatureVariationBase |
|
74 |
|
75 TUint32 FeatureId() const; |
|
76 |
|
77 }; |
|
78 /** |
|
79 * TVtUiDPVariation |
|
80 * |
|
81 * Display Post (DP) variation class. Uses Featuremanager to verify if feture is |
|
82 * supported. This class should be instanced only once and same instance |
|
83 * should be passesd as reference to modules that need this feature variation |
|
84 * information. |
|
85 * @since S60 v3.2 |
|
86 */ |
|
87 NONSHARABLE_CLASS( TVtUiDPVariation ) : public TVtUiFeatureVariationBase |
|
88 { |
|
89 |
|
90 public: |
|
91 |
|
92 /** |
|
93 * Return whether or DP variation is supported. |
|
94 * |
|
95 * @return ETrue if DP supported. |
|
96 */ |
|
97 TBool IsDPSupported() const; |
|
98 |
|
99 private: // from TVtUiFeatureVariationBase |
|
100 |
|
101 TUint32 FeatureId() const; |
|
102 |
|
103 }; |
|
104 /** |
|
105 * TVtUiBTVariation |
|
106 * |
|
107 * BlueTooth (BT) variation class. Uses Featuremanager to verify if feture is |
|
108 * supported. This class should be instanced only once and same instance |
|
109 * should be passesd as reference to modules that need this feature variation |
|
110 * information. |
|
111 * @since S60 v3.2 |
|
112 */ |
|
113 NONSHARABLE_CLASS( TVtUiBTVariation ) : public TVtUiFeatureVariationBase |
|
114 { |
|
115 |
|
116 public: |
|
117 |
|
118 /** |
|
119 * Return whether or BT variation is supported. |
|
120 * |
|
121 * @return ETrue if BT supported. |
|
122 */ |
|
123 TBool IsBTSupported() const; |
|
124 |
|
125 private: // from TVtUiFeatureVariationBase |
|
126 |
|
127 TUint32 FeatureId() const; |
|
128 |
|
129 }; |
|
130 /** |
|
131 * TVtUiSideVolumeKeysVariation |
|
132 * |
|
133 * Side volume keys variation class. Uses Featuremanager to verify if feture is |
|
134 * supported. This class should be instanced only once and same instance |
|
135 * should be passesd as reference to modules that need this feature variation |
|
136 * information. |
|
137 * @since S60 v3.2 |
|
138 */ |
|
139 NONSHARABLE_CLASS( TVtUiSideVolumeKeysVariation ) : public TVtUiFeatureVariationBase |
|
140 { |
|
141 |
|
142 public: |
|
143 |
|
144 /** |
|
145 * Return whether or Side volume keys variation is supported. |
|
146 * |
|
147 * @return ETrue if Side volume keys supported. |
|
148 */ |
|
149 TBool IsSideVolumeKeysSupported() const; |
|
150 |
|
151 private: // from TVtUiFeatureVariationBase |
|
152 |
|
153 TUint32 FeatureId() const; |
|
154 |
|
155 }; |
|
156 /** |
|
157 * TVtUiActiveIdleFetManVariation |
|
158 * |
|
159 * Active Idle feature manager variation class. Uses Featuremanager to verify if feture is |
|
160 * supported. This class should be instanced only once and same instance |
|
161 * should be passesd as reference to modules that need this feature variation |
|
162 * information. |
|
163 * @since S60 v3.2 |
|
164 */ |
|
165 NONSHARABLE_CLASS( TVtUiActiveIdleFetManVariation ) : public TVtUiFeatureVariationBase |
|
166 { |
|
167 |
|
168 public: |
|
169 |
|
170 /** |
|
171 * Return whether or Acvtive Idle variation is supported. |
|
172 * |
|
173 * @return ETrue if Acvtive Idle supported. |
|
174 */ |
|
175 TBool IsActiveIdleFetManSupported() const; |
|
176 |
|
177 private: // from TVtUiFeatureVariationBase |
|
178 |
|
179 TUint32 FeatureId() const; |
|
180 |
|
181 }; |
|
182 #endif // T_VTUIFEATUREVARIATION_H |