phoneapp/phoneuiutils/inc/phoneconstants.h
branchRCL_3
changeset 62 5266b1f337bd
parent 61 41a7f70b3818
child 81 c26cc2a7c548
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
     1 /*
     1 /*
     2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2005-2010 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  
    49 const TUid KUidStartupApplication = { 0x100058F4 }; // Startup application
    50 const TUid KUidStartupApplication = { 0x100058F4 }; // Startup application
       
    51 const TUid KUidSpdia = { 0x1000590A };              // Speeddial application.
    50 const TUid KVtUiAppUidValue = { 0x101F8681 };       // Video Telephony application
    52 const TUid KVtUiAppUidValue = { 0x101F8681 };       // Video Telephony application
    51 
    53 
    52 // Contants below define which view will be activated. 
    54 // Contants below define which view will be activated. 
    53 const TInt KTouchDiallerViewCommand = 1;
    55 const TInt KTouchDiallerViewCommand = 1;
    54 const TInt KTouchCallHandlingVievCommand = 2;
    56 const TInt KTouchCallHandlingVievCommand = 2;
    58 
    60 
    59 // Defination for launching Log application
    61 // Defination for launching Log application
    60 const TUid KPhoneUidViewLogLastDial = { 1 };        // Last dialled view ID of Log application
    62 const TUid KPhoneUidViewLogLastDial = { 1 };        // Last dialled view ID of Log application
    61 const TUid KPhoneUidLogStm = { 0x01002982 };        // Id for stm for Log application
    63 const TUid KPhoneUidLogStm = { 0x01002982 };        // Id for stm for Log application
    62 _LIT8( KPhoneStmLoadMagicString, "outside" );       // Message for activating view of an application
    64 _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};
    63 
    68 
    64 // Used in CPhoneKeyEventHandler
    69 // Used in CPhoneKeyEventHandler
    65 // Seconds in microseconds
    70 // Seconds in microseconds
    66 const TInt KPhoneSecondInMicroseconds = 1000000;
    71 const TInt KPhoneSecondInMicroseconds = 1000000;
    67 // For long press of end key while external
    72 // For long press of end key while external
   154 const TInt KClockWindowIdle = 2;
   159 const TInt KClockWindowIdle = 2;
   155 
   160 
   156 
   161 
   157 // Used in CPhoneKeys
   162 // Used in CPhoneKeys
   158 // The character to be used as the 'wait' character, by DTMF code.
   163 // The character to be used as the 'wait' character, by DTMF code.
   159 const TUint KPhoneDtmfWaitCharacter  = 'w';
   164 const TUint KPhoneDtmfWaitCharacter = 'w';
       
   165 const TUint KPhoneDtmfWaitCharacterUpper = 'W';
   160 
   166 
   161 // The character to be used as the 'soft pause' character, by DTMF code.
   167 // The character to be used as the 'soft pause' character, by DTMF code.
   162 const TUint KPhoneDtmfPauseCharacter = 'p';
   168 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;
   163 
   178 
   164 // Following, are the standard DTMF characters...
   179 // Following, are the standard DTMF characters...
   165 const TInt KPhoneDtmfHashCharacter    = '#';
   180 const TInt KPhoneDtmfHashCharacter    = '#';
   166 const TInt KPhoneDtmfStarCharacter    = '*';
   181 const TInt KPhoneDtmfStarCharacter    = '*';
   167 const TInt KPhoneDtmf0Character       = '0';
   182 const TInt KPhoneDtmf0Character       = '0';
   213 const TInt KMaxAppendLength = 64;
   228 const TInt KMaxAppendLength = 64;
   214 
   229 
   215 // From CPhoneNoteUtilities
   230 // From CPhoneNoteUtilities
   216 const TInt KPhoneNoteSoftkeysUseDefault = 0;
   231 const TInt KPhoneNoteSoftkeysUseDefault = 0;
   217 const TInt KPhoneNoteGraphicNone = -1;
   232 const TInt KPhoneNoteGraphicNone = -1;
   218 const TInt KPhoneNoteNoTimeout = -1;
       
   219 
   233 
   220 // State machine ordinal number
   234 // State machine ordinal number
   221 static const TInt KPhoneUiStateMachineOrdinal = 1;
   235 static const TInt KPhoneUiStateMachineOrdinal = 1;
   222 
   236 
   223 static const TUid KUidAppGSMStates = { 0x101F7CAC };
   237 static const TUid KUidAppGSMStates = { 0x101F7CAC };
   227 _LIT( KPhoneLogFolder, "PhoneUI");
   241 _LIT( KPhoneLogFolder, "PhoneUI");
   228 _LIT( KPhoneLogFileName, "PhoneUI.log" );
   242 _LIT( KPhoneLogFileName, "PhoneUI.log" );
   229 
   243 
   230 // Paths to CentRep
   244 // Paths to CentRep
   231 _LIT( KGSMProtocol, "phoneuistates.dll" );
   245 _LIT( KGSMProtocol, "phoneuistates.dll" );
   232 _LIT( KVoIPExtension, "phoneuivoipextension.dll" );
   246 _LIT( KVoIPExtension, "PhoneUIVoIPExtension.dll" );
   233 
   247 
   234 // Literals for formatting log messages
   248 // Literals for formatting log messages
   235 _LIT( KPEDefaultMsgToPhoneUI,   "PE ----> PHONEUI <%S> message from PE. CallId: %d.");
   249 _LIT( KPEDefaultMsgToPhoneUI,   "PE ----> PHONEUI <%S> message from PE. CallId: %d.");
   236 _LIT( KPEDefaultMsgToPE,        "PE <---- PHONEUI        <%S> to PE.");
   250 _LIT( KPEDefaultMsgToPE,        "PE <---- PHONEUI        <%S> to PE.");
   237 _LIT( KPEDefaultMsgToPhoneUIEnd,"PE ----> PHONEUI_COMPLETED    <%S> message from PE  executed succesfully");
   251 _LIT( KPEDefaultMsgToPhoneUIEnd,"PE ----> PHONEUI_COMPLETED    <%S> message from PE  executed succesfully");
   298 // Emergency call id
   312 // Emergency call id
   299 const TInt KEmergencyCallId = 7;
   313 const TInt KEmergencyCallId = 7;
   300 
   314 
   301 // Conference call id
   315 // Conference call id
   302 const TInt KConferenceCallId = 8;
   316 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;
   303 
   323 
   304 //AudioVolume const
   324 //AudioVolume const
   305 // CONSTANTS
   325 // CONSTANTS
   306 const TInt KPhoneDefaultVolume = 4;
   326 const TInt KPhoneDefaultVolume = 4;
   307 
   327 
   415 
   435 
   416 // Mediator interface command's time out
   436 // Mediator interface command's time out
   417 const TInt KPhoneUiMediatorIfTimeout = 10000;
   437 const TInt KPhoneUiMediatorIfTimeout = 10000;
   418 
   438 
   419 // Name of Call UI dll which is loaded polymorficly in CPhoneQueryController
   439 // Name of Call UI dll which is loaded polymorficly in CPhoneQueryController
   420 _LIT( KPhoneCaUiLoadedLib, "cauiengine.dll" );
   440 _LIT( KPhoneCaUiLoadedLib, "CaUiEngine.dll" );
   421 
   441 
   422 // CPhoneTextQuery constants
   442 // CPhoneTextQuery constants
   423 const TInt KLeftCbaId = 0;
   443 const TInt KLeftCbaId = 0;
   424 const TInt KRightCbaId = 2;
   444 const TInt KRightCbaId = 2;
   425 
   445 
   474 const TInt KPhoneMaxParamLength = 10;
   494 const TInt KPhoneMaxParamLength = 10;
   475 
   495 
   476 // Video call setup failed query timeout
   496 // Video call setup failed query timeout
   477 const TInt KPhoneVideoCallSetupFailedQueryTimeout = 5; 
   497 const TInt KPhoneVideoCallSetupFailedQueryTimeout = 5; 
   478 
   498 
   479 // Key event value for long press
       
   480 const TInt EEventLongPress = 1100;
       
   481 
   499 
   482 #endif  // PHONECONSTANTS_H
   500 #endif  // PHONECONSTANTS_H
   483 
   501 
   484 // End of File
   502 // End of File