1 /* |
1 /* |
2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
44 // Application UIDs |
44 // Application UIDs |
45 const TUid KUidPhoneApplication = { 0x100058B3 }; // Phone application |
45 const TUid KUidPhoneApplication = { 0x100058B3 }; // Phone application |
46 const TUid KPhoneUidAppPhonebook = { 0x101F4CCE }; // PhoneBook |
46 const TUid KPhoneUidAppPhonebook = { 0x101F4CCE }; // PhoneBook |
47 const TUid KPhoneUidAppPhoneInfo = { 0x101fc0ef }; // Phone Info |
47 const TUid KPhoneUidAppPhoneInfo = { 0x101fc0ef }; // Phone Info |
48 const TUid KPhoneUidAppFTD = { 0x100058F2 }; // Field Test Display |
48 const TUid KPhoneUidAppFTD = { 0x100058F2 }; // Field Test Display |
49 const TUid KDeviceManagerUid = {0x101F6DE5}; // Device manager application |
|
50 const TUid KUidStartupApplication = { 0x100058F4 }; // Startup application |
49 const TUid KUidStartupApplication = { 0x100058F4 }; // Startup application |
51 const TUid KUidSpdia = { 0x1000590A }; // Speeddial application. |
|
52 const TUid KVtUiAppUidValue = { 0x101F8681 }; // Video Telephony application |
50 const TUid KVtUiAppUidValue = { 0x101F8681 }; // Video Telephony application |
53 |
51 |
54 // Contants below define which view will be activated. |
52 // Contants below define which view will be activated. |
55 const TInt KTouchDiallerViewCommand = 1; |
53 const TInt KTouchDiallerViewCommand = 1; |
56 const TInt KTouchCallHandlingVievCommand = 2; |
54 const TInt KTouchCallHandlingVievCommand = 2; |
60 |
58 |
61 // Defination for launching Log application |
59 // Defination for launching Log application |
62 const TUid KPhoneUidViewLogLastDial = { 1 }; // Last dialled view ID of Log application |
60 const TUid KPhoneUidViewLogLastDial = { 1 }; // Last dialled view ID of Log application |
63 const TUid KPhoneUidLogStm = { 0x01002982 }; // Id for stm for Log application |
61 const TUid KPhoneUidLogStm = { 0x01002982 }; // Id for stm for Log application |
64 _LIT8( KPhoneStmLoadMagicString, "outside" ); // Message for activating view of an application |
62 _LIT8( KPhoneStmLoadMagicString, "outside" ); // Message for activating view of an application |
65 |
|
66 // SimLock Ui UID to launch the SimLock App |
|
67 const TUid KSimLockUIApplicationUid= {0x2000B0FA}; |
|
68 |
63 |
69 // Used in CPhoneKeyEventHandler |
64 // Used in CPhoneKeyEventHandler |
70 // Seconds in microseconds |
65 // Seconds in microseconds |
71 const TInt KPhoneSecondInMicroseconds = 1000000; |
66 const TInt KPhoneSecondInMicroseconds = 1000000; |
72 // For long press of end key while external |
67 // For long press of end key while external |
159 const TInt KClockWindowIdle = 2; |
154 const TInt KClockWindowIdle = 2; |
160 |
155 |
161 |
156 |
162 // Used in CPhoneKeys |
157 // Used in CPhoneKeys |
163 // The character to be used as the 'wait' character, by DTMF code. |
158 // The character to be used as the 'wait' character, by DTMF code. |
164 const TUint KPhoneDtmfWaitCharacter = 'w'; |
159 const TUint KPhoneDtmfWaitCharacter = 'w'; |
165 const TUint KPhoneDtmfWaitCharacterUpper = 'W'; |
|
166 |
160 |
167 // The character to be used as the 'soft pause' character, by DTMF code. |
161 // The character to be used as the 'soft pause' character, by DTMF code. |
168 const TUint KPhoneDtmfPauseCharacter = 'p'; |
162 const TUint KPhoneDtmfPauseCharacter = 'p'; |
169 const TUint KPhoneDtmfPauseCharacterUpper = 'P'; |
|
170 |
|
171 // The character to be used as the 'speed-dial' character, by DTMF code. |
|
172 const TUint KPhoneDtmfSpeedDialCharacter = '+'; |
|
173 |
|
174 const TUint KPhoneDtmfPlusCharacter = 135; // Bluetooth SU-8W '+' |
|
175 |
|
176 // The length of the speed dial prefix, used to prevent buffer overflow |
|
177 const TUint KPhoneDtmfSpeedDialPrefixLength = 1; |
|
178 |
163 |
179 // Following, are the standard DTMF characters... |
164 // Following, are the standard DTMF characters... |
180 const TInt KPhoneDtmfHashCharacter = '#'; |
165 const TInt KPhoneDtmfHashCharacter = '#'; |
181 const TInt KPhoneDtmfStarCharacter = '*'; |
166 const TInt KPhoneDtmfStarCharacter = '*'; |
182 const TInt KPhoneDtmf0Character = '0'; |
167 const TInt KPhoneDtmf0Character = '0'; |
228 const TInt KMaxAppendLength = 64; |
213 const TInt KMaxAppendLength = 64; |
229 |
214 |
230 // From CPhoneNoteUtilities |
215 // From CPhoneNoteUtilities |
231 const TInt KPhoneNoteSoftkeysUseDefault = 0; |
216 const TInt KPhoneNoteSoftkeysUseDefault = 0; |
232 const TInt KPhoneNoteGraphicNone = -1; |
217 const TInt KPhoneNoteGraphicNone = -1; |
|
218 const TInt KPhoneNoteNoTimeout = -1; |
233 |
219 |
234 // State machine ordinal number |
220 // State machine ordinal number |
235 static const TInt KPhoneUiStateMachineOrdinal = 1; |
221 static const TInt KPhoneUiStateMachineOrdinal = 1; |
236 |
222 |
237 static const TUid KUidAppGSMStates = { 0x101F7CAC }; |
223 static const TUid KUidAppGSMStates = { 0x101F7CAC }; |
241 _LIT( KPhoneLogFolder, "PhoneUI"); |
227 _LIT( KPhoneLogFolder, "PhoneUI"); |
242 _LIT( KPhoneLogFileName, "PhoneUI.log" ); |
228 _LIT( KPhoneLogFileName, "PhoneUI.log" ); |
243 |
229 |
244 // Paths to CentRep |
230 // Paths to CentRep |
245 _LIT( KGSMProtocol, "phoneuistates.dll" ); |
231 _LIT( KGSMProtocol, "phoneuistates.dll" ); |
246 _LIT( KVoIPExtension, "PhoneUIVoIPExtension.dll" ); |
232 _LIT( KVoIPExtension, "phoneuivoipextension.dll" ); |
247 |
233 |
248 // Literals for formatting log messages |
234 // Literals for formatting log messages |
249 _LIT( KPEDefaultMsgToPhoneUI, "PE ----> PHONEUI <%S> message from PE. CallId: %d."); |
235 _LIT( KPEDefaultMsgToPhoneUI, "PE ----> PHONEUI <%S> message from PE. CallId: %d."); |
250 _LIT( KPEDefaultMsgToPE, "PE <---- PHONEUI <%S> to PE."); |
236 _LIT( KPEDefaultMsgToPE, "PE <---- PHONEUI <%S> to PE."); |
251 _LIT( KPEDefaultMsgToPhoneUIEnd,"PE ----> PHONEUI_COMPLETED <%S> message from PE executed succesfully"); |
237 _LIT( KPEDefaultMsgToPhoneUIEnd,"PE ----> PHONEUI_COMPLETED <%S> message from PE executed succesfully"); |
312 // Emergency call id |
298 // Emergency call id |
313 const TInt KEmergencyCallId = 7; |
299 const TInt KEmergencyCallId = 7; |
314 |
300 |
315 // Conference call id |
301 // Conference call id |
316 const TInt KConferenceCallId = 8; |
302 const TInt KConferenceCallId = 8; |
317 |
|
318 // LifeTimer const |
|
319 const TInt KPhoneLifeTimerHoursLength = 6; |
|
320 const TInt KPhoneLifeTimerMinutesLength = 2; |
|
321 const TInt KTimerTextLength = 64; |
|
322 const TInt KTimerMinuteSeparator = 2; |
|
323 |
303 |
324 //AudioVolume const |
304 //AudioVolume const |
325 // CONSTANTS |
305 // CONSTANTS |
326 const TInt KPhoneDefaultVolume = 4; |
306 const TInt KPhoneDefaultVolume = 4; |
327 |
307 |
435 |
415 |
436 // Mediator interface command's time out |
416 // Mediator interface command's time out |
437 const TInt KPhoneUiMediatorIfTimeout = 10000; |
417 const TInt KPhoneUiMediatorIfTimeout = 10000; |
438 |
418 |
439 // Name of Call UI dll which is loaded polymorficly in CPhoneQueryController |
419 // Name of Call UI dll which is loaded polymorficly in CPhoneQueryController |
440 _LIT( KPhoneCaUiLoadedLib, "CaUiEngine.dll" ); |
420 _LIT( KPhoneCaUiLoadedLib, "cauiengine.dll" ); |
441 |
421 |
442 // CPhoneTextQuery constants |
422 // CPhoneTextQuery constants |
443 const TInt KLeftCbaId = 0; |
423 const TInt KLeftCbaId = 0; |
444 const TInt KRightCbaId = 2; |
424 const TInt KRightCbaId = 2; |
445 |
425 |
494 const TInt KPhoneMaxParamLength = 10; |
474 const TInt KPhoneMaxParamLength = 10; |
495 |
475 |
496 // Video call setup failed query timeout |
476 // Video call setup failed query timeout |
497 const TInt KPhoneVideoCallSetupFailedQueryTimeout = 5; |
477 const TInt KPhoneVideoCallSetupFailedQueryTimeout = 5; |
498 |
478 |
|
479 // Key event value for long press |
|
480 const TInt EEventLongPress = 1100; |
499 |
481 |
500 #endif // PHONECONSTANTS_H |
482 #endif // PHONECONSTANTS_H |
501 |
483 |
502 // End of File |
484 // End of File |