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