1 /* |
|
2 * Copyright (c) 2005-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: Common constant values needed through PhoneUI module. |
|
15 |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef PHONECONSTANTS_H |
|
20 #define PHONECONSTANTS_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #ifdef RD_UIKON_UNBRANCH |
|
25 #include <AknDef.h> |
|
26 #include <aknconsts.h> |
|
27 #endif // RD_UIKON_UNBRANCH |
|
28 #include "telinternalsingletonuids.h" |
|
29 |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 // SECURITY POLICIES |
|
34 |
|
35 // Read capability: AlwaysPass. |
|
36 _LIT_SECURITY_POLICY_PASS( KPhoneReadPolicyAlwaysPass ); |
|
37 |
|
38 // Read capability: ReadDeviceData. |
|
39 _LIT_SECURITY_POLICY_C1( KPhoneReadPolicy, ECapabilityReadDeviceData ); |
|
40 |
|
41 // Write capability: WriteDeviceData. |
|
42 _LIT_SECURITY_POLICY_C1( KPhoneWritePolicy, ECapabilityWriteDeviceData ); |
|
43 |
|
44 // Application UIDs |
|
45 const TUid KUidPhoneApplication = { 0x100058B3 }; // Phone application |
|
46 const TUid KPhoneUidAppPhonebook = { 0x101F4CCE }; // PhoneBook |
|
47 const TUid KPhoneUidAppPhoneInfo = { 0x101fc0ef }; // Phone Info |
|
48 const TUid KPhoneUidAppFTD = { 0x100058F2 }; // Field Test Display |
|
49 const TUid KDeviceManagerUid = {0x101F6DE5}; // Device manager application |
|
50 const TUid KUidStartupApplication = { 0x100058F4 }; // Startup application |
|
51 const TUid KUidSpdia = { 0x1000590A }; // Speeddial application. |
|
52 const TUid KVtUiAppUidValue = { 0x101F8681 }; // Video Telephony application |
|
53 |
|
54 // Contants below define which view will be activated. |
|
55 const TInt KTouchDiallerViewCommand = 1; |
|
56 const TInt KTouchCallHandlingVievCommand = 2; |
|
57 |
|
58 // Defination for launching PhoneInfo application |
|
59 const TUid KPhoneUidViewPhoneInfo = { 1 }; |
|
60 |
|
61 // Defination for launching Log application |
|
62 const TUid KPhoneUidViewLogLastDial = { 1 }; // Last dialled view ID of Log application |
|
63 const TUid KPhoneUidLogStm = { 0x01002982 }; // Id for stm for Log application |
|
64 _LIT8( KPhoneStmLoadMagicString, "outside" ); // Message for activating view of an application |
|
65 |
|
66 // Used in CPhoneKeyEventHandler |
|
67 // Seconds in microseconds |
|
68 const TInt KPhoneSecondInMicroseconds = 1000000; |
|
69 // For long press of end key while external |
|
70 const TInt KPhoneLongPressKeyEventDuration = |
|
71 ( KPhoneSecondInMicroseconds * 6 ) / 10; // 0.6 sec |
|
72 |
|
73 // Used in CPhoneUIController |
|
74 // |
|
75 // Delay between Phone Engine start tries |
|
76 const TInt KPeRetryDelay = 500000; |
|
77 // PE start retry times |
|
78 const TInt KPeRetryCount = 10; |
|
79 |
|
80 // ServiceId value: service not determined |
|
81 const TInt KUnknownService = 0; |
|
82 |
|
83 // Used in CPhoneViewController |
|
84 // Voice Mail Box key "1" |
|
85 const TInt KPhoneVoiceMailBoxLocation = 1; |
|
86 // Video Mail Box key "2" |
|
87 const TInt KPhoneVideoMbxLocation = 2; |
|
88 // Path to soft reject resource |
|
89 _LIT( KPhoneSoftRejectResource, "z:softreject.rsc" ); |
|
90 |
|
91 // Used in CPhoneMenuController |
|
92 // valid phone number length |
|
93 const TInt KPhoneValidPhoneNumberLength = 3; |
|
94 |
|
95 // Used in CPhoneState |
|
96 // Maximum length of the Call header label |
|
97 const TInt KPhoneCallHeaderLabelMaxLength = 50; |
|
98 // Line feed |
|
99 _LIT( KPhoneLineFeed, "\n"); |
|
100 // Length of the text to display call duration - |
|
101 // at least double the length of (HH:MM:SS) |
|
102 const TInt KPhoneMaxTimeDisplayTextLength = 16; |
|
103 // Length of the profile display date string |
|
104 const TInt KPhoneMaxDateDisplayTextLength = 100; |
|
105 |
|
106 // Used in CPhoneStateIncoming |
|
107 // Array granularity for soft reject array. |
|
108 const TInt KPhoneSoftRejectArrayGranularity = 2; |
|
109 // Length of SMS. |
|
110 const TInt KPhoneSMSLength = 160; |
|
111 |
|
112 // Used in CPhoneStateInCall |
|
113 // Default CBA resource ID for single item fetch dialog |
|
114 const TInt KPhoneDefaultFetchCBA = 0; |
|
115 |
|
116 // Used in CPhoneBubbleWrapper |
|
117 const TInt KPhoneNumberEntryBufferSize = 100; |
|
118 const TInt KMaxNumberOfCallerBubbles = 20; |
|
119 const TInt KNumberOfActiveCalls = 2; |
|
120 |
|
121 // Constant to indicate 'no resource' |
|
122 const TInt KPhoneBubbleNoResource = KErrNotFound; |
|
123 const TInt KPhoneContactNameMaxLength = 101; // 50+50 first & last names + 1 for space between |
|
124 // Conference case |
|
125 const TInt KPhoneConferenceInitialSize = 2; |
|
126 const TInt KConferenceMaxParticipants = 5; |
|
127 |
|
128 // Used in CPhoneStatusPane |
|
129 const TInt KPhoneTitlePaneTextSize = 128; |
|
130 const TInt KPhoneTitlePaneForOperatorName = 1; |
|
131 const TInt KPhoneTitlePaneForPbkSigleFetch = 2; |
|
132 const TInt KPhoneTitlePaneListGranularity = 4; |
|
133 const TInt KPhoneNaviPaneListGranularity = 4; |
|
134 |
|
135 // Resource enumeration uid's |
|
136 const TUid KUidRssPhoneBase = { 0x01 }; |
|
137 const TUid KUidRssPhoneGSM = { 0x02 }; |
|
138 |
|
139 // For CPhoneView use |
|
140 const TUid KUidViewId = { 0x10282D81 }; |
|
141 const TUid KUidAppId = { 0x100058B3 }; |
|
142 |
|
143 // Amount of regions to be reserved. |
|
144 const TInt KPhoneRegionAmount = 16; |
|
145 |
|
146 const TInt KDefaultCallHeaderLeft = 12; |
|
147 const TInt KDefaultCallHeaderTop = 6; |
|
148 const TInt KDefaultCallHeaderRight = 19; |
|
149 const TInt KDefaultCallHeaderBottom = 12; |
|
150 const TInt KCallHeaderLeft = 156; |
|
151 const TInt KCallHeaderTop = 6; |
|
152 const TInt KCallHeaderRight = 164; |
|
153 const TInt KCallHeaderBottom = 12; |
|
154 |
|
155 const TInt KClockWindowActive = 3; |
|
156 const TInt KClockWindowIdle = 2; |
|
157 |
|
158 |
|
159 // Used in CPhoneKeys |
|
160 // The character to be used as the 'wait' character, by DTMF code. |
|
161 const TUint KPhoneDtmfWaitCharacter = 'w'; |
|
162 |
|
163 // The character to be used as the 'soft pause' character, by DTMF code. |
|
164 const TUint KPhoneDtmfPauseCharacter = 'p'; |
|
165 |
|
166 // The character to be used as the 'speed-dial' character, by DTMF code. |
|
167 const TUint KPhoneDtmfSpeedDialCharacter = '+'; |
|
168 |
|
169 // The length of the speed dial prefix, used to prevent buffer overflow |
|
170 const TUint KPhoneDtmfSpeedDialPrefixLength = 1; |
|
171 |
|
172 // Following, are the standard DTMF characters... |
|
173 const TInt KPhoneDtmfHashCharacter = '#'; |
|
174 const TInt KPhoneDtmfStarCharacter = '*'; |
|
175 const TInt KPhoneDtmf0Character = '0'; |
|
176 const TInt KPhoneDtmf1Character = '1'; |
|
177 const TInt KPhoneDtmf2Character = '2'; |
|
178 const TInt KPhoneDtmf3Character = '3'; |
|
179 const TInt KPhoneDtmf4Character = '4'; |
|
180 const TInt KPhoneDtmf5Character = '5'; |
|
181 const TInt KPhoneDtmf6Character = '6'; |
|
182 const TInt KPhoneDtmf7Character = '7'; |
|
183 const TInt KPhoneDtmf8Character = '8'; |
|
184 const TInt KPhoneDtmf9Character = '9'; |
|
185 |
|
186 // Check second # |
|
187 const TInt KSecondKeyEvent = 2; |
|
188 |
|
189 // Used in CPhoneStringContainer |
|
190 const TInt KPhoneStringContainerReserved = 50; |
|
191 const TInt KPhoneStringContainerGranularity = 10; |
|
192 |
|
193 // Used in test shutdown |
|
194 _LIT( KExit, "*#1234#" ); |
|
195 /// ROM drive. |
|
196 _LIT( KDriveZ, "z:" ); |
|
197 |
|
198 _LIT( KPhoneResourceFile, "phoneui.rsc" ); |
|
199 _LIT( KPhoneResourceFileVoIP, "phoneuivoip.rsc" ); |
|
200 _LIT( KPhoneResourceFileCHUI, "callhandlingui.rsc" ); |
|
201 _LIT( KPhoneResourceFilePHTC, "phoneuitouch.rsc" ); |
|
202 |
|
203 // Used in CPhoneAppUI |
|
204 // Priority of application window groups. |
|
205 const TInt KPhoneApplicationWindowGroupPriority = 0; |
|
206 |
|
207 // Ordinal position of phone application when sending to background. |
|
208 // NOTE: 0 - foreground application |
|
209 // 1 - server side status pane |
|
210 // 2 - phone application |
|
211 const TInt KPhoneWindowGroupPositionBackground = 2; |
|
212 |
|
213 // Here is priority for capturing keys, used in cpaappuibase.cpp : |
|
214 const TInt KPhoneCapturePriority = 10; |
|
215 |
|
216 // Name of the EIKON server window group. |
|
217 _LIT( KPhoneEikonServer, "EikonServer" ); |
|
218 |
|
219 // For CPhoneLogger use |
|
220 const TInt KMaxLogLineLength = 256; |
|
221 const TInt KMaxAppendLength = 64; |
|
222 |
|
223 // From CPhoneNoteUtilities |
|
224 const TInt KPhoneNoteSoftkeysUseDefault = 0; |
|
225 const TInt KPhoneNoteGraphicNone = -1; |
|
226 const TInt KPhoneNoteNoTimeout = -1; |
|
227 |
|
228 // State machine ordinal number |
|
229 static const TInt KPhoneUiStateMachineOrdinal = 1; |
|
230 |
|
231 static const TUid KUidAppGSMStates = { 0x101F7CAC }; |
|
232 static const TUid KUidAppVoIPExtensionStates = { 0x101F7CA9 }; |
|
233 |
|
234 // Log folder and log file name |
|
235 _LIT( KPhoneLogFolder, "PhoneUI"); |
|
236 _LIT( KPhoneLogFileName, "PhoneUI.log" ); |
|
237 |
|
238 // Paths to CentRep |
|
239 _LIT( KGSMProtocol, "phoneuistates.dll" ); |
|
240 _LIT( KVoIPExtension, "phoneuivoipextension.dll" ); |
|
241 |
|
242 // Literals for formatting log messages |
|
243 _LIT( KPEDefaultMsgToPhoneUI, "PE ----> PHONEUI <%S> message from PE. CallId: %d."); |
|
244 _LIT( KPEDefaultMsgToPE, "PE <---- PHONEUI <%S> to PE."); |
|
245 _LIT( KPEDefaultMsgToPhoneUIEnd,"PE ----> PHONEUI_COMPLETED <%S> message from PE executed succesfully"); |
|
246 _LIT( KPEDefaultMsgToPEEnd, "PE <---- PHONEUI_COMPLETED <%S> message to PE sended succesfully"); |
|
247 _LIT( KPEDefaultStateChange, "PHONEUI_STATE_CHANGE <%S> -> <%S> "); |
|
248 _LIT( KPEDefaultMsgToView, "PHONEUI ----> VIEW <%S> message from Control. CallId: %d."); |
|
249 |
|
250 // Component literals for CPhoneMethodLogger |
|
251 _LIT( KPhoneUI, "PhoneUI: " ); |
|
252 _LIT( KPhoneUIControl, "PhoneUIControl: " ); |
|
253 _LIT( KPhoneUIView, "PhoneUIView: " ); |
|
254 _LIT( KPhoneUIStates, "PhoneUIStates: " ); |
|
255 _LIT( KPhoneUIUtils, "PhoneUIUtils: " ); |
|
256 _LIT( KPhoneMediatorCenter, "PhoneMediatorCenter: " ); |
|
257 _LIT( KLessThan, "<" ); |
|
258 _LIT( KGreaterThan, ">" ); |
|
259 |
|
260 // Used in PhoneStateDefinitions* |
|
261 const TInt KPhoneStateCommonFirst = 0; |
|
262 const TInt KPhoneStateProtocolFirst = 100; |
|
263 |
|
264 // Used in PhoneViewCommandDefinitions* |
|
265 const TInt KPhoneViewCommandCommonFirst = 1; // can't be 0 due to mediator |
|
266 const TInt KPhoneViewCommandCarrierFirst = 1000; |
|
267 const TInt KPhoneViewResponseCommonFirst = 0; |
|
268 const TInt KPhoneViewResponseCarrierFirst = 1000; |
|
269 |
|
270 // Used in PhoneRss* |
|
271 const TInt KPhoneRssCommonFirst = 0; |
|
272 const TInt KPhoneRssProtocolFirst = 1000; |
|
273 |
|
274 // Used in CPhoneNoteController |
|
275 const TInt KPhoneMaxCharsInNote = 256; |
|
276 |
|
277 // Used in CPhoneCenRepProxy |
|
278 // Variant read only default value |
|
279 const TInt KPhoneVariantReadOnlyDefaultValue = 0x00000000; |
|
280 const TInt KPhoneCenRepObserversGranularity = 16; |
|
281 |
|
282 // Used in CPhonePubSubProxy |
|
283 const TInt KPhonePubSubProxyObserverArrayGranularity = 16; |
|
284 const TInt KPhonePubSubArrayGranularity = 16; |
|
285 |
|
286 // Used in CPhoneInCallIndicator |
|
287 const TInt KPhoneIncallIndicatorDefaultValue = 0; |
|
288 const TInt KPhoneIncallIndicatorArrayGranularity = 8; |
|
289 |
|
290 // Used in CPhoneApplicationExit |
|
291 // Default buffer size. Do not rely on this. Use MaxLength instead. |
|
292 const TInt KPhoneTemporaryBufferMaxLength = 1024; |
|
293 // UID range separator. |
|
294 const TInt KPhoneApplicationRangeSeparator = '-'; |
|
295 // Drive identifier. |
|
296 const TInt KPhoneApplicationDriveIdentifier = ':'; |
|
297 // Retry five times. |
|
298 const TInt KPhoneApplicationRetryCount = 5; |
|
299 // Interval between retry attempts. |
|
300 const TInt KPhoneApplicationRetryInterval = 100000; |
|
301 // Any application |
|
302 _LIT( KPhoneApplicationAnyApp, "*" ); |
|
303 // OOM idenfier. |
|
304 _LIT( KPhoneApplicationOom, "OOM" ); |
|
305 |
|
306 // Emergency call id |
|
307 const TInt KEmergencyCallId = 7; |
|
308 |
|
309 // Conference call id |
|
310 const TInt KConferenceCallId = 8; |
|
311 |
|
312 // LifeTimer const |
|
313 const TInt KPhoneLifeTimerHoursLength = 6; |
|
314 const TInt KPhoneLifeTimerMinutesLength = 2; |
|
315 const TInt KTimerTextLength = 64; |
|
316 const TInt KTimerMinuteSeparator = 2; |
|
317 |
|
318 //AudioVolume const |
|
319 // CONSTANTS |
|
320 const TInt KPhoneDefaultVolume = 4; |
|
321 |
|
322 const TInt KPhoneVolumeMinValue = 0; |
|
323 const TInt KPhoneVolumeMaxValue = 10; |
|
324 |
|
325 const TInt KPhoneVolumeWinsVolumeDivider = 10; |
|
326 |
|
327 // Used in CPhoneRemoteControlHandler |
|
328 #ifdef RD_UIKON_UNBRANCH |
|
329 // Volume repeat delay. |
|
330 const TInt KPhoneButtonRepeatDelay = KAknStandardKeyboardRepeatRate; |
|
331 #else // RD_UIKON_UNBRANCH |
|
332 // Volume repeat delay. |
|
333 const TInt KPhoneButtonRepeatDelay = (1000000/6); |
|
334 #endif // RD_UIKON_UNBRANCH |
|
335 |
|
336 // First voice call id |
|
337 const TInt KVoiceCallIdFirst = 0; |
|
338 |
|
339 // Video telephony call ids |
|
340 const TInt KVideoTelephonyCallId1 = 9; |
|
341 const TInt KVideoTelephonyCallId2 = 10; |
|
342 |
|
343 // Used in MPhoneAudioPlayerObserver |
|
344 const TInt KPhoneAudioPlayerNotSpecified = -1; |
|
345 |
|
346 // Used in CPhoneAudioPlayer |
|
347 // One second pause between ringing repeats. |
|
348 const TInt KPhoneRingingRepeatsTrailPause = 1000000; |
|
349 // For ascending and descending, each level is played for 3 seconds |
|
350 const TInt KPhoneAudioAscendingRampDuration = 3000000; |
|
351 // For repeating the audio tone forever |
|
352 const TInt KPhoneMdaAudioToneRepeatForever = -2; |
|
353 // Value how much to shift variable |
|
354 const TInt KTimesToMultiply = 2; |
|
355 |
|
356 // Used in CPhoneRingingTone |
|
357 _LIT( KPhoneRingingToneDriveZ, "z:" ); |
|
358 #ifdef RD_VIDEO_AS_RINGING_TONE |
|
359 _LIT( KPhoneRingingToneVideoMime, "video/*" ); |
|
360 _LIT( KPhoneRingingToneRealVideoMime, "*realmedia" ); |
|
361 #endif |
|
362 |
|
363 // Used in CPhoneRingingTonePlayerAO |
|
364 // Tts volumes |
|
365 const TInt KTtsVolumeBoost = 9; |
|
366 const TInt KTtsVolumeMin = 2; |
|
367 const TInt KTtsVolumeAscendingRepeat = 4; |
|
368 const TInt KPlayerVolumeAscendingRepeat = 3; |
|
369 const TInt KTtsVolumeAscendingDecrease = 2; |
|
370 |
|
371 // Header that is added to the text-to-say, that makes this text recognizable |
|
372 // as Text-To-Speech data |
|
373 _LIT( KPhoneTtsHeader, "(tts)"); |
|
374 // If the ringing tone for line1, line2 or personal ringing tone is not played |
|
375 // in 3 seconds, then try next. |
|
376 const TInt KPhoneMaxRingingWaiting = 3000000; |
|
377 const TInt KPhoneTtsAscendingStep = 3000000; |
|
378 // Delays between periods of Text-To-Speech playing |
|
379 // e.g. { 3 000 000, 4 000 000} means the following order of playiong: |
|
380 // 3 secs tone, then TTS, then 4 secs of tone, then TTS, then tone forever. |
|
381 const TInt KPhoneTtsDelays[] = { 3000000, 4000000 }; //2000000, 3000000 |
|
382 // Amount of elements in KPhoneTtsDelays array. |
|
383 const TInt KPhoneTtsDelaysCount = sizeof( KPhoneTtsDelays ) / sizeof ( TInt ); |
|
384 // Audio preference for Text to Speech |
|
385 const TUint KAudioPrefTextToSpeechCallHardCoded = 0x01370001; |
|
386 // Sound files |
|
387 #ifdef __WINS__ |
|
388 _LIT( KPhoneDefaultSoundFile, "z:test.wav" ); |
|
389 _LIT( KPhoneSilentSoundFile, "z:test.wav" ); |
|
390 _LIT( KPhoneBeepOnceSoundFile, "z:test.wav" ); |
|
391 #else |
|
392 _LIT( KPhoneDefaultSoundFile, "\\System\\Sounds\\Simple\\Nokia tune.wav" ); |
|
393 // Sequence for silent call ringing tone. Don't touch these sequence. |
|
394 _LIT8( KPhoneNoSoundSequence, "\x00\x11\x0A\x05\xFC\x0A\x08\x40\x32\x0A\ |
|
395 \xF7\x40\x64\x06\x0B" ); |
|
396 // Sequence for beep call ringing tone. Don't touch these sequence. |
|
397 _LIT8( KPhoneBeepSequence, "\x00\x11\x0A\x0A\x08\x73\x0A\x40\x28\x0A\xF7\ |
|
398 \x05\xFC\x40\x64\x0A\x08\x40\x32\x0A\xF7\x06\x0B" ); |
|
399 // Sequence for unsecure VoIP call warning tone. Donīt touch these sequence. |
|
400 _LIT8( KPhoneUnsecureVoIPCall, "\x00\x11\x0B\x67\x04\x40\x04\x67\x04\x40\ |
|
401 \x04\x6C\x04\x40\x04\x6D\x04\x0B" ); |
|
402 #endif // __WINS__ |
|
403 |
|
404 // Used in CPhoneVideoPlayer |
|
405 const TInt KPhoneVideoMinVolumeLevel = 0; |
|
406 const TInt KPhoneVideoMaxVolumeLevel = 10; |
|
407 const TInt KPhoneVideoVolumeRampInterval = 3000000; |
|
408 const TInt KPhoneVideoVolumeRampStep = 1; |
|
409 const TInt KPhoneVideoSubQCCIFWidth = 128; |
|
410 const TInt KPhoneVideoSubQCCIFHeight = 96; |
|
411 |
|
412 const TInt KBaseScaleFactor = 100; |
|
413 const TInt KHalfBaseScale = 50; |
|
414 const TInt KFullScaleFactor = 1.0; |
|
415 const TInt KHalfScaleFactor = 0.5; |
|
416 const TInt KCentering = 2; |
|
417 |
|
418 |
|
419 // Used in mediator for receiving and sending events and commands |
|
420 const TUid KPhoneUiCategory = { 0x100058B3 }; |
|
421 |
|
422 // Our mediator interface versions |
|
423 const TInt KCommandIfVersionMajor = 1; |
|
424 const TInt KCommandIfVersionMinor = 0; |
|
425 const TInt KCommandIfVersionBuild = 0; |
|
426 const TInt KEventIfVersionMajor = 1; |
|
427 const TInt KEventIfVersionMinor = 0; |
|
428 const TInt KEventIfVersionBuild = 0; |
|
429 |
|
430 // Mediator interface command's time out |
|
431 const TInt KPhoneUiMediatorIfTimeout = 10000; |
|
432 |
|
433 // Name of Call UI dll which is loaded polymorficly in CPhoneQueryController |
|
434 _LIT( KPhoneCaUiLoadedLib, "cauiengine.dll" ); |
|
435 |
|
436 // CPhoneTextQuery constants |
|
437 const TInt KLeftCbaId = 0; |
|
438 const TInt KRightCbaId = 2; |
|
439 |
|
440 // Used in CPhoneNoteTimer |
|
441 // Time in milliseconds that the timer runs. |
|
442 const TInt KDtmfWaitNoteTimeoutValue = 100000; |
|
443 |
|
444 // Als line change timer 2,4 seconds. |
|
445 // Together with long keypress (0.6) seconds |
|
446 // it is 3 seconds like in the specification. |
|
447 const TInt KAlsLineChangeTimerValue = 2400000; |
|
448 |
|
449 // Wlan MAC address length, separator and formatter |
|
450 const TInt KPhoneWlanMacAddressLength = 50; |
|
451 const TUint KPhoneWlanSeparator (':'); |
|
452 _LIT( KWLanMACDataFormat, "%02x"); |
|
453 |
|
454 // BTA Disconnect handler timeout |
|
455 // 1 minute in microseconds. |
|
456 const TInt KPhoneBtaaConnectionLostQueryTimeout = 60000000; |
|
457 |
|
458 // Time cap between information note and reconnect query |
|
459 const TInt KInformationNoteDisplayTime = 3000000; |
|
460 |
|
461 // HELP |
|
462 _LIT( KINCAL_HLP_CALL_HANDLING, "INCAL_HLP_CALL_HANDLING" ); |
|
463 _LIT( KINCAL_HLP_VIDEOCALL, "INCAL_HLP_VIDEO_CALL" ); |
|
464 _LIT( KDATA_DIALER_HLP_MAIN, "DIALER_HLP_MAIN" ); |
|
465 _LIT( KDATA_DIALER_HLP_SEND_DTMF, "DIALER_HLP_SEND_DTMF" ); |
|
466 |
|
467 // Maximum length of file path for caller image theme |
|
468 const TInt KMaxFilePathLength = 256; |
|
469 |
|
470 // Used in Ringingtone handling |
|
471 const TInt Kkilo = 1024; |
|
472 |
|
473 // Allow name in call header in setup state after 1.5s |
|
474 const TInt KTimeoutAllowName = 1500000; |
|
475 |
|
476 // It enumerates different screen saver states. |
|
477 enum TPhoneScreensaverState |
|
478 { |
|
479 EPhoneScreensaverNotAllowed = 1, |
|
480 EPhoneScreensaverAllowed = 0 |
|
481 }; |
|
482 |
|
483 // VoIP variation |
|
484 const TInt KDynamicVoIPOff = 0; |
|
485 const TInt KDynamicVoIPOn = 1; |
|
486 |
|
487 // Max param lenght. |
|
488 const TInt KPhoneMaxParamLength = 10; |
|
489 |
|
490 // Video call setup failed query timeout |
|
491 const TInt KPhoneVideoCallSetupFailedQueryTimeout = 5; |
|
492 |
|
493 // Key event value for long press |
|
494 const TInt EEventLongPress = 1100; |
|
495 |
|
496 #endif // PHONECONSTANTS_H |
|
497 |
|
498 // End of File |
|