|
1 /* |
|
2 * Copyright (c) 2006 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: ?Description |
|
15 |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef MUSSETTINGSKEYS_H |
|
21 #define MUSSETTINGSKEYS_H |
|
22 |
|
23 #include <e32cmn.h> |
|
24 |
|
25 /** |
|
26 * A namespace container for MultimediaSharing Settings API constants. |
|
27 */ |
|
28 namespace MusSettingsKeys |
|
29 { |
|
30 /** Repository uid */ |
|
31 const TUid KRepositoryUid = { 0x1028238B }; |
|
32 |
|
33 /* Defines when MultimediaSharing is activated (always/in home networks/never). |
|
34 Modified from the Settings UI of MultimediaSharing. */ |
|
35 const TInt KActivation( 0x01 ); |
|
36 /** Contains the possible values of KMusActivation key. */ |
|
37 enum TActivation |
|
38 { |
|
39 EAlwaysActive, |
|
40 EActiveInHomeNetworks, |
|
41 ENever |
|
42 }; |
|
43 |
|
44 /** Defines that should we act in a operator specific way. */ |
|
45 const TInt KOperatorVariant( 0x2 ); |
|
46 /** Contains the possible values of KOperatorVariant key. */ |
|
47 enum TOperatorVariant |
|
48 { |
|
49 EStandard, |
|
50 EOperatorSpecific |
|
51 }; |
|
52 |
|
53 /** Defines that should a beep be played when MS becomes available. |
|
54 Modified from the Settings UI of MultimediaSharing. */ |
|
55 const TInt KAuditoryNotification( 0x03 ); |
|
56 /** Contains the possible values of KMusAvailabilityAuditoryNotification key. */ |
|
57 enum TAuditoryNotification |
|
58 { |
|
59 EAuditoryNotificationOn, |
|
60 EAuditoryNotificationOff |
|
61 }; |
|
62 |
|
63 /** Defines that should a popup dialog be shown when MS becomes available. |
|
64 * @deprecated |
|
65 */ |
|
66 const TInt KPopupNotification( 0x04 ); |
|
67 /** Contains the possible values of KMusAvailabilityPopupNotification key. |
|
68 * @deprecated |
|
69 */ |
|
70 enum TPopupNotification |
|
71 { |
|
72 EPopupNotificationOn, |
|
73 EPopupNotificationOff |
|
74 }; |
|
75 |
|
76 /** @deprecated */ |
|
77 const TInt KPopupNotificationType( 0x05 ); |
|
78 /** @deprecated */ |
|
79 enum TPopupNotificationType |
|
80 { |
|
81 ENotificationTypeQueryUser, |
|
82 ENotificationTypePopup |
|
83 }; |
|
84 |
|
85 /** Defines EDGE/DTM support. */ |
|
86 const TInt KEdgeDtmSupport( 0x06 ); |
|
87 /** Contains the possible values of KMusEdgeDtmSupport key. */ |
|
88 enum TEdgeDtmSupport |
|
89 { |
|
90 EDtmModeAllowed, |
|
91 EDtmModeNotAllowed |
|
92 }; |
|
93 |
|
94 /** Defines that is short (IETF) or long (3GPP) way of initiating sessions used. */ |
|
95 const TInt KForceInternetSignaling( 0x07 ); |
|
96 /** Contains the possible values of KMusSessionSetupMethod key. */ |
|
97 enum TForceInternetSignaling |
|
98 { |
|
99 EForceInternetSignaling, |
|
100 EFollowProfileConfiguration |
|
101 }; |
|
102 |
|
103 /** |
|
104 Modified from the Settings UI of MultimediaSharing. */ |
|
105 const TInt KAutoRecord( 0x08 ); |
|
106 /** Contains the possible values of KAutoRecord key. */ |
|
107 enum TAutoRecord |
|
108 { |
|
109 EAutoRecordOn, |
|
110 EAutoRecordOff |
|
111 }; |
|
112 |
|
113 /** |
|
114 Modified from the Settings UI of MultimediaSharing. */ |
|
115 const TInt KVideoLocation( 0x09 ); |
|
116 |
|
117 /** Defines the id of the SIP Profile to be used by MultimediaSharing. |
|
118 Modified from the Settings UI of MultimediaSharing. */ |
|
119 /** Contains an integer value. */ |
|
120 const TInt KSipProfileId( 0x0A ); |
|
121 |
|
122 /** Defines the default orientation of the UI. */ |
|
123 const TInt KUiOrientation( 0x0B ); |
|
124 /** Contains the possible values of KMusUiOrientation key. */ |
|
125 enum TUiOrientation |
|
126 { |
|
127 EPortrait, |
|
128 ELandscape |
|
129 }; |
|
130 |
|
131 /** Defines the type of SIP options. |
|
132 Defines that how are SIP OPTIONS handled (3GPP / operator specific way?) */ |
|
133 const TInt KCapabilityQuery( 0x0C ); |
|
134 /** */ |
|
135 enum TCapabilityQuery |
|
136 { |
|
137 ESequential, |
|
138 EParallel, |
|
139 ENoOptions |
|
140 }; |
|
141 |
|
142 /** Defines the intial value for product mode variation key. |
|
143 * The values should be constructed like below |
|
144 * |
|
145 * 7 = Most Significant Bit(MSB) and 0 = Least Significant Bit (LSB) |
|
146 * 76543210 <-- bits 7 and 6 for the video player, |
|
147 * 5, 4 and 3 for the keypad, |
|
148 * 2, 1 and 0 for the camera |
|
149 * |
|
150 * Bit 1 & 0 : Camera Usability |
|
151 * 00 - > Always |
|
152 * 01 - > Only portrait |
|
153 * 10 - > Only lanscape |
|
154 * Bit 2 : Camera Availability |
|
155 * 0 - > Static ( For example no camera lens cover) |
|
156 * 1 - > Dynamic ( For example camera with lens cover) |
|
157 * Bit 3 & 4 : Keypad Usuability |
|
158 * 00 - > Always |
|
159 * 01 - > Only portrait |
|
160 * 10 - > Only lanscape |
|
161 * Bit 5 : Keypad Availability |
|
162 * 0 - > Static ( For example keypad Not covered) |
|
163 * 1 - > Dynamic ( For example keypad covered) |
|
164 * Bit 6 & 7 : Videoplayer Usability |
|
165 * 00 - > Always |
|
166 * 01 - > Only portrait |
|
167 * 10 - > Only lanscape |
|
168 * Note :Videoplayer availability will be always.There is no static |
|
169 * and dynamic availability in videoplayer. |
|
170 * |
|
171 * Example : Bits set like |
|
172 * 01110001 = 0x71 ( In hex format ) = 113 ( In integer format ) |
|
173 * It will be intrepreted and used like |
|
174 * a)Videoplayer is usable only in portrait and |
|
175 * b)Keypad availability is dynamic and if it is available |
|
176 * the can be used only in landscape mode. |
|
177 * c)Camera availability is static and can be used only in |
|
178 * portrait mode. |
|
179 */ |
|
180 const TInt KProductModeVariation( 0x0D ); |
|
181 |
|
182 enum TAvailability |
|
183 { |
|
184 EAvailabilityStatic, |
|
185 EAvailabilityDynamic |
|
186 }; |
|
187 |
|
188 enum TUsability |
|
189 { |
|
190 EUsabilityAlways, |
|
191 EUsabilityPortrait, |
|
192 EUsabilityLandscape |
|
193 }; |
|
194 |
|
195 /** Concatenation of encoder configuration information. Information has been |
|
196 * divided to tokens separated by a semicolon. Modified from the MusEngine. |
|
197 * Contains a 8-bit descriptor value. |
|
198 */ |
|
199 const TInt KEncoderConfigurationInfo( 0x0E ); |
|
200 |
|
201 /** |
|
202 * Contains UID of the encoding device meant to be used. Read by MuS Engine |
|
203 */ |
|
204 const TInt KEncodingDevice( 0x0F ); |
|
205 |
|
206 /** |
|
207 * Defines whether multimediasharing is restricted to CS call type only. |
|
208 * Default value will be 0 ( EFalse ) means it is allowed in all call types |
|
209 * for example VOIP and Skype calls. |
|
210 */ |
|
211 const TInt KAllowOnlyWithActiveCSCall( 0x10 ); |
|
212 /** Contains the possible values of KAllowedCSOnly key. */ |
|
213 enum TAllowedCSOnly |
|
214 { |
|
215 EAllowedAllCalls, |
|
216 EAllowedCSOnly |
|
217 }; |
|
218 |
|
219 /** |
|
220 * Defines whether multimediasharing is restricted to 3G bearer only. |
|
221 * Default value will be 0 ( EFalse ) means it is allowed in all bearer types |
|
222 * for example 3G,WLAN etc. |
|
223 */ |
|
224 const TInt KAllowOnlyIn3GNetwork( 0x11 ); |
|
225 /** Contains the possible values of KAllowed3GOnly key. */ |
|
226 enum TAllowed3GOnly |
|
227 { |
|
228 EAllowedAllBearers, |
|
229 EAllowed3GOnly |
|
230 }; |
|
231 |
|
232 /** |
|
233 * Defines which and how cameras are used. The default value |
|
234 * is EUseCameraSwapping. To disable camera swapping and roll back |
|
235 * old behaviuor, value must be set to EUseOnlyMainCamera. |
|
236 * to the menu or to the toolbar. |
|
237 */ |
|
238 const TInt KCameraUsage( 0x12 ); |
|
239 |
|
240 /** Contains the possible values of KCameraUsage key. */ |
|
241 enum TUseCamera |
|
242 { |
|
243 EUseOnlyMainCamera, |
|
244 EUseOnlySecondaryCamera, |
|
245 EUseCameraSwapping |
|
246 }; |
|
247 |
|
248 /** |
|
249 * Defines whether multimediasharing is supporting 2-way video. The |
|
250 * default value is EOneWayVideo. |
|
251 */ |
|
252 const TInt KVideoDirection( 0x13 ); |
|
253 |
|
254 /** Contains the possible values of KVideoDirection key. */ |
|
255 enum TVideoDirection |
|
256 { |
|
257 EOneWayVideo, |
|
258 ETwoWayVideo |
|
259 }; |
|
260 |
|
261 /** |
|
262 * Defines whether b=AS and b=TIAS SDP attributes are used. Zero value |
|
263 * means that usage of TIAS is disabled, only AS will be used (hard coded |
|
264 * value). Positive value means AS in KBits per second. TIAS value will |
|
265 * be set to AS multiplied by 1000. |
|
266 */ |
|
267 const TInt KVideoBandwidth( 0x14 ); |
|
268 |
|
269 /** |
|
270 * Defines whether multimediasharing is supporting fast startup mode |
|
271 */ |
|
272 const TInt KFastStartupMode( 0x15 ); |
|
273 |
|
274 /** Contains the possible values of KFastStartupMode key. */ |
|
275 enum TFastMode |
|
276 { |
|
277 EFastModeOn, |
|
278 EFastModeOff, |
|
279 EFastModeDisabled |
|
280 }; |
|
281 } |
|
282 |
|
283 |
|
284 #endif // MUSSETTINGSKEYS_H |
|
285 |