phoneapp/phoneuiutils/inc/phoneconstants.h
changeset 0 5f000ab63145
child 14 24062c24fe38
child 21 92ab7f8d0eab
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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 
       
   227 // State machine ordinal number
       
   228 static const TInt KPhoneUiStateMachineOrdinal = 1;
       
   229 
       
   230 static const TUid KUidAppGSMStates = { 0x101F7CAC };
       
   231 static const TUid KUidAppVoIPExtensionStates = { 0x101F7CA9 };
       
   232 
       
   233 // Log folder and log file name
       
   234 _LIT( KPhoneLogFolder, "PhoneUI");
       
   235 _LIT( KPhoneLogFileName, "PhoneUI.log" );
       
   236 
       
   237 // Paths to CentRep
       
   238 _LIT( KGSMProtocol, "phoneuistates.dll" );
       
   239 _LIT( KVoIPExtension, "PhoneUIVoIPExtension.dll" );
       
   240 
       
   241 // Literals for formatting log messages
       
   242 _LIT( KPEDefaultMsgToPhoneUI,   "PE ----> PHONEUI <%S> message from PE. CallId: %d.");
       
   243 _LIT( KPEDefaultMsgToPE,        "PE <---- PHONEUI        <%S> to PE.");
       
   244 _LIT( KPEDefaultMsgToPhoneUIEnd,"PE ----> PHONEUI_COMPLETED    <%S> message from PE  executed succesfully");
       
   245 _LIT( KPEDefaultMsgToPEEnd,     "PE <---- PHONEUI_COMPLETED    <%S> message to PE  sended succesfully");
       
   246 _LIT( KPEDefaultStateChange,    "PHONEUI_STATE_CHANGE     <%S> -> <%S> ");
       
   247 _LIT( KPEDefaultMsgToView,      "PHONEUI ----> VIEW <%S> message from Control. CallId: %d.");
       
   248 
       
   249 // Component literals for CPhoneMethodLogger
       
   250 _LIT( KPhoneUI, "PhoneUI: " );
       
   251 _LIT( KPhoneUIControl, "PhoneUIControl: " );
       
   252 _LIT( KPhoneUIView, "PhoneUIView: " );
       
   253 _LIT( KPhoneUIStates, "PhoneUIStates: " );
       
   254 _LIT( KPhoneUIUtils, "PhoneUIUtils: " );
       
   255 _LIT( KPhoneMediatorCenter, "PhoneMediatorCenter: " );
       
   256 _LIT( KLessThan, "<" );
       
   257 _LIT( KGreaterThan, ">" );
       
   258 
       
   259 // Used in PhoneStateDefinitions*
       
   260 const TInt KPhoneStateCommonFirst = 0;
       
   261 const TInt KPhoneStateProtocolFirst = 100;
       
   262 
       
   263 // Used in PhoneViewCommandDefinitions*
       
   264 const TInt KPhoneViewCommandCommonFirst = 1; // can't be 0 due to mediator
       
   265 const TInt KPhoneViewCommandCarrierFirst = 1000;
       
   266 const TInt KPhoneViewResponseCommonFirst = 0;
       
   267 const TInt KPhoneViewResponseCarrierFirst = 1000;
       
   268 
       
   269 // Used in PhoneRss*
       
   270 const TInt KPhoneRssCommonFirst = 0;
       
   271 const TInt KPhoneRssProtocolFirst = 1000;
       
   272 
       
   273 // Used in CPhoneNoteController
       
   274 const TInt KPhoneMaxCharsInNote = 256;
       
   275 
       
   276 // Used in CPhoneCenRepProxy
       
   277 // Variant read only default value
       
   278 const TInt KPhoneVariantReadOnlyDefaultValue = 0x00000000;
       
   279 const TInt KPhoneCenRepObserversGranularity = 16;
       
   280 
       
   281 // Used in CPhonePubSubProxy
       
   282 const TInt KPhonePubSubProxyObserverArrayGranularity = 16;
       
   283 const TInt KPhonePubSubArrayGranularity = 16;
       
   284 
       
   285 // Used in CPhoneInCallIndicator
       
   286 const TInt KPhoneIncallIndicatorDefaultValue = 0;
       
   287 const TInt KPhoneIncallIndicatorArrayGranularity = 8;
       
   288 
       
   289 // Used in CPhoneApplicationExit
       
   290 // Default buffer size. Do not rely on this. Use MaxLength instead.
       
   291 const TInt KPhoneTemporaryBufferMaxLength = 1024;
       
   292 // UID range separator.
       
   293 const TInt KPhoneApplicationRangeSeparator = '-';
       
   294 // Drive identifier.
       
   295 const TInt KPhoneApplicationDriveIdentifier = ':';
       
   296 // Retry five times.
       
   297 const TInt KPhoneApplicationRetryCount = 5;
       
   298 // Interval between retry attempts.
       
   299 const TInt KPhoneApplicationRetryInterval = 100000;
       
   300 // Any application 
       
   301 _LIT( KPhoneApplicationAnyApp, "*" );
       
   302 // OOM idenfier.
       
   303 _LIT( KPhoneApplicationOom, "OOM" );
       
   304 
       
   305 // Emergency call id
       
   306 const TInt KEmergencyCallId = 7;
       
   307 
       
   308 // Conference call id
       
   309 const TInt KConferenceCallId = 8;
       
   310 
       
   311 // LifeTimer const
       
   312 const TInt KPhoneLifeTimerHoursLength 	= 6;
       
   313 const TInt KPhoneLifeTimerMinutesLength = 2;
       
   314 const TInt KTimerTextLength				= 64;
       
   315 const TInt KTimerMinuteSeparator		= 2;
       
   316 
       
   317 //AudioVolume const
       
   318 // CONSTANTS
       
   319 const TInt KPhoneDefaultVolume = 4;
       
   320 
       
   321 const TInt KPhoneVolumeMinValue = 0;
       
   322 const TInt KPhoneVolumeMaxValue = 10;
       
   323 
       
   324 const TInt KPhoneVolumeWinsVolumeDivider = 10;
       
   325 
       
   326 // Used in CPhoneRemoteControlHandler
       
   327 #ifdef RD_UIKON_UNBRANCH
       
   328 // Volume repeat delay.
       
   329 const TInt KPhoneButtonRepeatDelay = KAknStandardKeyboardRepeatRate;
       
   330 #else // RD_UIKON_UNBRANCH
       
   331 // Volume repeat delay.
       
   332 const TInt KPhoneButtonRepeatDelay = (1000000/6);
       
   333 #endif // RD_UIKON_UNBRANCH
       
   334 
       
   335 // First voice call id
       
   336 const TInt KVoiceCallIdFirst = 0;
       
   337 
       
   338 // Video telephony call ids
       
   339 const TInt KVideoTelephonyCallId1 = 9;
       
   340 const TInt KVideoTelephonyCallId2 = 10;
       
   341   
       
   342 // Used in MPhoneAudioPlayerObserver
       
   343 const TInt KPhoneAudioPlayerNotSpecified = -1;
       
   344 
       
   345 // Used in CPhoneAudioPlayer
       
   346 // One second pause between ringing repeats.
       
   347 const TInt KPhoneRingingRepeatsTrailPause = 1000000;
       
   348 // For ascending and descending, each level is played for 3 seconds
       
   349 const TInt KPhoneAudioAscendingRampDuration = 3000000;
       
   350 // For repeating the audio tone forever
       
   351 const TInt KPhoneMdaAudioToneRepeatForever = -2;
       
   352 // Value how much to shift variable
       
   353 const TInt KTimesToMultiply = 2; 
       
   354 
       
   355 // Used in CPhoneRingingTone
       
   356 _LIT( KPhoneRingingToneDriveZ, "z:" );
       
   357 #ifdef RD_VIDEO_AS_RINGING_TONE
       
   358     _LIT( KPhoneRingingToneVideoMime, "video/*" );
       
   359     _LIT( KPhoneRingingToneRealVideoMime, "*realmedia" );
       
   360 #endif    
       
   361 
       
   362 // Used in CPhoneRingingTonePlayerAO
       
   363 // Tts volumes
       
   364 const TInt KTtsVolumeBoost = 9;
       
   365 const TInt KTtsVolumeMin = 2;
       
   366 const TInt KTtsVolumeAscendingRepeat = 4;
       
   367 const TInt KPlayerVolumeAscendingRepeat = 3;
       
   368 const TInt KTtsVolumeAscendingDecrease = 2;
       
   369 
       
   370 // Header that is added to the text-to-say, that makes this text recognizable 
       
   371 // as Text-To-Speech data
       
   372 _LIT( KPhoneTtsHeader, "(tts)");
       
   373 // If the ringing tone for line1, line2 or personal ringing tone is not played
       
   374 // in 3 seconds, then try next. 
       
   375 const TInt KPhoneMaxRingingWaiting = 3000000;
       
   376 const TInt KPhoneTtsAscendingStep = 3000000; 
       
   377 // Delays between periods of Text-To-Speech playing
       
   378 // e.g. { 3 000 000, 4 000 000} means the following order of playiong:
       
   379 // 3 secs tone, then TTS, then 4 secs of tone, then TTS, then tone forever.
       
   380 const TInt KPhoneTtsDelays[] = { 3000000, 4000000 }; //2000000, 3000000
       
   381 // Amount of elements in KPhoneTtsDelays array.
       
   382 const TInt KPhoneTtsDelaysCount = sizeof( KPhoneTtsDelays ) / sizeof ( TInt );
       
   383 // Audio preference for Text to Speech
       
   384 const TUint KAudioPrefTextToSpeechCallHardCoded = 0x01370001;
       
   385 // Sound files
       
   386 #ifdef __WINS__
       
   387     _LIT( KPhoneDefaultSoundFile, "z:test.wav" );
       
   388     _LIT( KPhoneSilentSoundFile, "z:test.wav" );
       
   389     _LIT( KPhoneBeepOnceSoundFile, "z:test.wav" );
       
   390 #else
       
   391     _LIT( KPhoneDefaultSoundFile, "\\System\\Sounds\\Simple\\Nokia tune.wav" );
       
   392     // Sequence for silent call ringing tone. Don't touch these sequence.
       
   393     _LIT8( KPhoneNoSoundSequence, "\x00\x11\x0A\x05\xFC\x0A\x08\x40\x32\x0A\
       
   394 \xF7\x40\x64\x06\x0B" );
       
   395     // Sequence for beep call ringing tone. Don't touch these sequence.
       
   396     _LIT8( KPhoneBeepSequence, "\x00\x11\x0A\x0A\x08\x73\x0A\x40\x28\x0A\xF7\
       
   397 \x05\xFC\x40\x64\x0A\x08\x40\x32\x0A\xF7\x06\x0B" );
       
   398     // Sequence for unsecure VoIP call warning tone. Donīt touch these sequence.
       
   399     _LIT8( KPhoneUnsecureVoIPCall, "\x00\x11\x0B\x67\x04\x40\x04\x67\x04\x40\
       
   400 \x04\x6C\x04\x40\x04\x6D\x04\x0B" );
       
   401 #endif // __WINS__
       
   402 
       
   403 // Used in CPhoneVideoPlayer
       
   404 const TInt KPhoneVideoMinVolumeLevel = 0;
       
   405 const TInt KPhoneVideoMaxVolumeLevel = 10;
       
   406 const TInt KPhoneVideoVolumeRampInterval = 3000000;
       
   407 const TInt KPhoneVideoVolumeRampStep = 1;
       
   408 const TInt KPhoneVideoSubQCCIFWidth = 128;
       
   409 const TInt KPhoneVideoSubQCCIFHeight = 96;
       
   410 
       
   411 const TInt KBaseScaleFactor = 100;
       
   412 const TInt KHalfBaseScale = 50;
       
   413 const TInt KFullScaleFactor = 1.0;
       
   414 const TInt KHalfScaleFactor = 0.5;
       
   415 const TInt KCentering = 2;
       
   416 
       
   417 
       
   418 // Used in mediator for receiving and sending events and commands
       
   419 const TUid KPhoneUiCategory = { 0x100058B3 };
       
   420 
       
   421 // Our mediator interface versions
       
   422 const TInt KCommandIfVersionMajor = 1;
       
   423 const TInt KCommandIfVersionMinor = 0;
       
   424 const TInt KCommandIfVersionBuild = 0;
       
   425 const TInt KEventIfVersionMajor = 1;
       
   426 const TInt KEventIfVersionMinor = 0;
       
   427 const TInt KEventIfVersionBuild = 0;
       
   428 
       
   429 // Mediator interface command's time out
       
   430 const TInt KPhoneUiMediatorIfTimeout = 10000;
       
   431 
       
   432 // Name of Call UI dll which is loaded polymorficly in CPhoneQueryController
       
   433 _LIT( KPhoneCaUiLoadedLib, "CaUiEngine.dll" );
       
   434 
       
   435 // CPhoneTextQuery constants
       
   436 const TInt KLeftCbaId = 0;
       
   437 const TInt KRightCbaId = 2;
       
   438 
       
   439 // Used in CPhoneNoteTimer
       
   440 // Time in milliseconds that the timer runs.
       
   441 const TInt KDtmfWaitNoteTimeoutValue = 100000;
       
   442 
       
   443 // Als line change timer 2,4 seconds.
       
   444 // Together with long keypress (0.6) seconds
       
   445 // it is 3 seconds like in the specification.
       
   446 const TInt KAlsLineChangeTimerValue = 2400000;
       
   447 
       
   448 // Wlan MAC address length, separator and formatter
       
   449 const TInt  KPhoneWlanMacAddressLength = 50;
       
   450 const TUint KPhoneWlanSeparator (':');
       
   451 _LIT( KWLanMACDataFormat, "%02x");
       
   452 
       
   453 // BTA Disconnect handler timeout
       
   454 // 1 minute in microseconds.
       
   455 const TInt KPhoneBtaaConnectionLostQueryTimeout = 60000000; 
       
   456 
       
   457 // Time cap between information note and reconnect query
       
   458 const TInt KInformationNoteDisplayTime = 3000000;
       
   459 
       
   460 // HELP
       
   461 _LIT( KINCAL_HLP_CALL_HANDLING, "INCAL_HLP_CALL_HANDLING" );
       
   462 _LIT( KINCAL_HLP_VIDEOCALL, "INCAL_HLP_VIDEO_CALL" );
       
   463 _LIT( KDATA_DIALER_HLP_MAIN, "DIALER_HLP_MAIN" );
       
   464 _LIT( KDATA_DIALER_HLP_SEND_DTMF, "DIALER_HLP_SEND_DTMF" );
       
   465 
       
   466 // Maximum length of file path for caller image theme
       
   467 const TInt KMaxFilePathLength = 256;
       
   468 
       
   469 // Used in Ringingtone handling
       
   470 const TInt Kkilo = 1024;
       
   471 
       
   472 // Allow name in call header in setup state after 1.5s
       
   473 const TInt KTimeoutAllowName = 1500000;
       
   474 
       
   475 // It enumerates different screen saver states.
       
   476 enum TPhoneScreensaverState
       
   477     {
       
   478     EPhoneScreensaverNotAllowed = 1,
       
   479     EPhoneScreensaverAllowed = 0
       
   480     };
       
   481 
       
   482 // VoIP variation
       
   483 const TInt KDynamicVoIPOff = 0;
       
   484 const TInt KDynamicVoIPOn = 1;
       
   485 
       
   486 // Max param lenght.
       
   487 const TInt KPhoneMaxParamLength = 10;
       
   488 
       
   489 // Video call setup failed query timeout
       
   490 const TInt KPhoneVideoCallSetupFailedQueryTimeout = 5; 
       
   491 
       
   492 
       
   493 #endif  // PHONECONSTANTS_H
       
   494 
       
   495 // End of File