author | hgs |
Fri, 17 Sep 2010 17:09:12 +0300 | |
changeset 74 | d1c62c765e48 |
parent 65 | 2a5d4ab426d3 |
child 76 | cfea66083b62 |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2005-2008 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: |
|
15 |
* A base class for an object implementing the state. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
||
20 |
#ifndef CPHONESTATE_H |
|
21 |
#define CPHONESTATE_H |
|
22 |
||
23 |
// INCLUDES |
|
24 |
#include <w32std.h> |
|
74 | 25 |
#include <eikenv.h> |
37 | 26 |
#include <remconcoreapitargetobserver.h> |
27 |
#include <MProfileEngine.h> |
|
28 |
#include "mphonestate.h" |
|
29 |
#include "mphoneviewcommandhandle.h" |
|
74 | 30 |
#include "cphoneuicommandmanager.h" |
31 |
#include "cphonenumberentrymanager.h" |
|
37 | 32 |
|
33 |
// FORWARD DECLARATIONS |
|
34 |
class MPhoneState; |
|
35 |
class MPhoneStateMachine; |
|
36 |
class TPhoneCmdParamCallHeaderData; |
|
37 |
class MPhoneCustomization; |
|
38 |
||
39 |
// CLASS DECLARATION |
|
40 |
||
41 |
/** |
|
42 |
* An abstract class for an object implementing the state. |
|
43 |
* |
|
44 |
*/ |
|
45 |
class CPhoneState : |
|
46 |
public CBase, |
|
47 |
public MPhoneState |
|
48 |
{ |
|
49 |
public: |
|
74 | 50 |
|
51 |
enum TNumberEntrySetRule |
|
52 |
{ |
|
53 |
ESetNEVisibilityFalse, |
|
54 |
ECheckIfNEUsedBeforeSettingVisibilityFalse |
|
55 |
}; |
|
37 | 56 |
/** |
57 |
* Constructor |
|
58 |
*/ |
|
59 |
IMPORT_C CPhoneState( |
|
60 |
MPhoneStateMachine* aStateMachine, |
|
61 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
62 |
MPhoneCustomization* aCustomization); |
|
63 |
||
64 |
/** |
|
74 | 65 |
* Creates UiCommandManager instance. |
37 | 66 |
*/ |
67 |
IMPORT_C void BaseConstructL(); |
|
68 |
||
69 |
/** |
|
70 |
* Destructor. |
|
71 |
*/ |
|
72 |
IMPORT_C virtual ~CPhoneState(); |
|
73 |
||
74 |
/** |
|
75 |
* A message handling function for Phone Engine messages |
|
76 |
* @param aMessage Message from Phone Engine |
|
77 |
* @param aCallId Call id the message concerns |
|
78 |
*/ |
|
79 |
IMPORT_C virtual void HandlePhoneEngineMessageL( |
|
80 |
const TInt aMessage, |
|
81 |
TInt aCallId ); |
|
82 |
||
83 |
/** |
|
84 |
* HandleError |
|
85 |
* Implements error handling framework |
|
86 |
* @param aErrorInfo: the error info |
|
87 |
*/ |
|
88 |
IMPORT_C virtual void HandleErrorL( |
|
89 |
const TPEErrorInfo& aErrorInfo ); |
|
90 |
||
91 |
/** |
|
92 |
* Handle processed (short, long) key messages from the key event |
|
93 |
* handler |
|
94 |
* @param aMessage a key message |
|
95 |
* @param aCode key event code |
|
96 |
*/ |
|
97 |
IMPORT_C virtual void HandleKeyMessageL( |
|
98 |
TPhoneKeyEventMessages aMessage, |
|
99 |
TKeyCode aCode ); |
|
100 |
||
101 |
/** |
|
102 |
* Handles raw key events from the key event handler |
|
103 |
* @param aKeyEvent a key event |
|
104 |
* @param aEventCode key event code |
|
105 |
*/ |
|
106 |
IMPORT_C virtual void HandleKeyEventL( |
|
107 |
const TKeyEvent& aKeyEvent, |
|
108 |
TEventCode aEventCode ); |
|
109 |
||
110 |
/** |
|
111 |
* Handles startup of the phone application |
|
112 |
*/ |
|
113 |
IMPORT_C virtual void HandlePhoneStartupL(); |
|
114 |
||
115 |
/** |
|
116 |
* This function is called when there is property value change. |
|
117 |
* @param aCategory Category of the property |
|
118 |
* @param aKey Property key that is changed |
|
119 |
* @param aValue New property value |
|
120 |
*/ |
|
121 |
IMPORT_C virtual void HandlePropertyChangedL( |
|
122 |
const TUid& aCategory, |
|
123 |
const TUint aKey, |
|
124 |
const TInt aValue ); |
|
125 |
||
126 |
/** |
|
127 |
* Handles commands. |
|
128 |
* @param aCommand It is the code of the command to be handled. |
|
129 |
* @returns boolean value was the command handled by the state |
|
130 |
* (ETrue) or not (EFalse) |
|
131 |
*/ |
|
132 |
IMPORT_C virtual TBool HandleCommandL( TInt aCommand ); |
|
133 |
||
134 |
/** |
|
135 |
* Processes command. |
|
136 |
* @param aCommand It is the code of the command to be handled. |
|
137 |
* @returns boolean value was the command handled by the state |
|
138 |
* (ETrue) or not (EFalse) |
|
139 |
*/ |
|
140 |
IMPORT_C virtual TBool ProcessCommandL( TInt aCommand ); |
|
141 |
||
142 |
/** |
|
143 |
* Handles commands from the Remote Control framework. |
|
144 |
* @param aOperationId The operation ID of the command. |
|
145 |
* @param aButtonAct The button action associated with the command. |
|
146 |
* @return ETrue if the event was handled, EFalse otherwise. |
|
147 |
*/ |
|
148 |
IMPORT_C virtual TBool HandleRemConCommandL( |
|
149 |
TRemConCoreApiOperationId aOperationId, |
|
150 |
TRemConCoreApiButtonAction aButtonAct); |
|
151 |
||
152 |
/** |
|
153 |
* Plays DTMF tone for key event |
|
154 |
* */ |
|
155 |
IMPORT_C void HandleDtmfKeyToneL( const TKeyEvent& aKeyEvent, |
|
156 |
TEventCode aEventCode ); |
|
157 |
||
158 |
/** |
|
159 |
* Show global InfoNote |
|
160 |
* @param aResourceId resource id to be resolved |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
161 |
* @param aNotificationDialog True if notification |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
162 |
* dialog should be used. |
37 | 163 |
*/ |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
164 |
IMPORT_C void SendGlobalInfoNoteL( TInt aResourceId, |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
165 |
TBool aNotificationDialog = EFalse ); |
37 | 166 |
|
167 |
/** |
|
168 |
* Show global ErrorNote |
|
169 |
* @param aResourceId resource id to be resolved |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
170 |
* @param aNotificationDialog True if notification |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
171 |
* dialog should be used. |
37 | 172 |
*/ |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
173 |
IMPORT_C void SendGlobalErrorNoteL( TInt aResourceId, |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
174 |
TBool aNotificationDialog = EFalse ); |
37 | 175 |
|
176 |
/** |
|
177 |
* Fetches autolock information - is it set on or not |
|
178 |
* @return is autolock set on (ETrue) or off (EFalse) |
|
179 |
*/ |
|
180 |
IMPORT_C TBool IsAutoLockOn() const; |
|
181 |
||
182 |
/** |
|
183 |
* Return is sim state ok |
|
184 |
* @return ETrue if is sim ok, otherwise EFalse |
|
185 |
**/ |
|
186 |
IMPORT_C TBool IsSimOk(); |
|
74 | 187 |
|
188 |
/** |
|
189 |
* Getter for CEikonEnv to avoid use of static system calls |
|
190 |
* @return CEikonEnv handle |
|
191 |
*/ |
|
192 |
IMPORT_C CEikonEnv* EikonEnv() const; |
|
193 |
||
194 |
/** |
|
195 |
* Setter for CEikonEnv to avoid use of static system calls |
|
196 |
* @param CEikonEnv handle |
|
197 |
*/ |
|
198 |
IMPORT_C virtual void SetEikonEnv( CEikonEnv* aEnv ); |
|
199 |
||
200 |
/** |
|
201 |
* Dial CS voice call |
|
202 |
*/ |
|
203 |
IMPORT_C void DialVoiceCallL(); |
|
204 |
||
205 |
/** |
|
206 |
* Checks whether customized dialer view is active, |
|
207 |
* @return ETrue if customized dialer is active |
|
208 |
*/ |
|
209 |
IMPORT_C TBool IsCustomizedDialerVisibleL() const; |
|
210 |
||
211 |
/** |
|
212 |
* Handle state-specific behaviour when number entry is cleared |
|
213 |
*/ |
|
214 |
IMPORT_C virtual void HandleNumberEntryClearedL(); |
|
215 |
||
216 |
/** |
|
217 |
* Sets up call header.(removes phone dialogs, |
|
218 |
* sets dialer visibility according to aRule value and puts |
|
219 |
* phone on top of everything). Orders UiCommand manager to |
|
220 |
* update CBS's etc. |
|
221 |
* @param aCallId - call id to set up |
|
222 |
* @param aRule - Number Entry visibility set option. |
|
223 |
*/ |
|
224 |
IMPORT_C void DisplayCallHeaderL( |
|
225 |
TInt aCallId, |
|
226 |
TNumberEntrySetRule aRule ); |
|
37 | 227 |
protected: |
228 |
||
229 |
/** |
|
230 |
* Handle EPEMessageAudioMuteChanged |
|
231 |
*/ |
|
232 |
IMPORT_C void HandleAudioMuteChangedL(); |
|
233 |
||
234 |
/** |
|
235 |
* Handle EPEMessageAudioOutputChanged |
|
236 |
*/ |
|
237 |
IMPORT_C void HandleAudioOutputChangedL(); |
|
238 |
||
239 |
/** |
|
240 |
* Handle SideVolumeKeyInc |
|
241 |
*/ |
|
242 |
IMPORT_C void IncreaseAudioVolumeL(); |
|
243 |
||
244 |
/** |
|
245 |
* Handle SideVolumeKeyDec |
|
246 |
*/ |
|
247 |
IMPORT_C void DecreaseAudioVolumeL(); |
|
248 |
||
249 |
/** |
|
250 |
* Dial CS multimedia call |
|
251 |
*/ |
|
252 |
IMPORT_C void DialMultimediaCallL(); |
|
253 |
||
254 |
/** |
|
255 |
* Disconnect call |
|
256 |
*/ |
|
257 |
IMPORT_C TBool DisconnectCallL(); |
|
258 |
||
259 |
/** |
|
260 |
* Set up the Idle screen in the background for the cases |
|
261 |
* where the phone is no longer the top application (eg. end |
|
262 |
* call when an external app is being displayed) |
|
263 |
*/ |
|
74 | 264 |
IMPORT_C void RemoveDialogsAndSendPhoneToBackgroundL(); |
37 | 265 |
|
266 |
/** |
|
267 |
* Update Single Active Call |
|
268 |
* @param aCallid call id |
|
269 |
*/ |
|
270 |
IMPORT_C void UpdateSingleActiveCallL( TInt aCallId ); |
|
271 |
||
272 |
/** |
|
273 |
* Update remote information data in the call header |
|
274 |
* @param aCallid call id |
|
275 |
*/ |
|
276 |
IMPORT_C void UpdateRemoteInfoDataL( TInt aCallId ); |
|
277 |
||
278 |
/** |
|
279 |
* Show note |
|
280 |
* @param aResourceId resource id to be resolved |
|
281 |
*/ |
|
282 |
IMPORT_C void ShowNoteL( TInt aResourceId ); |
|
283 |
||
284 |
/** |
|
285 |
* Show query |
|
286 |
* @param aResourceId resource id to be resolved |
|
287 |
*/ |
|
288 |
IMPORT_C void ShowQueryL( TInt aResourceId ); |
|
289 |
||
290 |
/** |
|
291 |
* Show text query |
|
292 |
* @param aDialogResourceId dialog's resource id |
|
293 |
* @param aDefaultCbaResourceId default CBA's resource id |
|
294 |
* @param aContentCbaResourceId content CBA's resource id |
|
295 |
* @param aDataText pointer to data text |
|
296 |
* @param aSendKeyEnabled send key enabled status for the query |
|
297 |
*/ |
|
298 |
IMPORT_C void ShowTextQueryL( |
|
299 |
TInt aDialogResourceId, |
|
300 |
TInt aDefaultCbaResourceId, |
|
301 |
TInt aContentCbaResourceId, |
|
302 |
TDes* aDataText, |
|
303 |
TBool aSendKeyEnabled = EFalse ); |
|
304 |
||
305 |
/** |
|
306 |
* Displays the call termination note, if required |
|
307 |
*/ |
|
308 |
IMPORT_C void DisplayCallTerminationNoteL(); |
|
309 |
||
310 |
/** |
|
311 |
* Set the handsfree mode |
|
312 |
* @param aHandsfreeMode ETrue to activate IHF, EFalse to deactivate |
|
313 |
*/ |
|
314 |
IMPORT_C void SetHandsfreeModeL( TBool aHandsfreeMode ); |
|
315 |
||
316 |
/** |
|
317 |
* Set the BT handsfree mode |
|
318 |
* @param aHandsfreeMode ETrue to activate BT, EFalse to deactivate |
|
319 |
*/ |
|
320 |
IMPORT_C void SetBTHandsfreeModeL( TBool aHandsfreeMode ); |
|
321 |
||
322 |
/** |
|
323 |
* Show global WarningNote |
|
324 |
* @param aResourceId resource id to be resolved |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
325 |
* @param aNotificationDialog True if notification dialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
326 |
* should be used. |
37 | 327 |
*/ |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
328 |
IMPORT_C void SendGlobalWarningNoteL( TInt aResourceId, |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
329 |
TBool aNotificationDialog = EFalse ); |
37 | 330 |
|
331 |
/** |
|
332 |
* Checks is the call id a video call. |
|
333 |
* @param aCallId - call id to be checked |
|
334 |
* @return ETrue if video call id, otherwise EFalse |
|
335 |
*/ |
|
336 |
IMPORT_C TBool IsVideoCall( const TInt aCallId ); |
|
337 |
||
338 |
/** |
|
339 |
* Return SimState. |
|
340 |
*/ |
|
341 |
IMPORT_C TPESimState SimState() const; |
|
342 |
||
343 |
/** |
|
344 |
* Start show security note |
|
345 |
* This should be called in startup and idle state |
|
346 |
* if sim state not ok |
|
347 |
*/ |
|
348 |
IMPORT_C void StartShowSecurityNoteL(); |
|
349 |
||
350 |
/** |
|
351 |
* Check if the sim card state is EPESimNotPresent with |
|
352 |
* the security mode is enabled. |
|
353 |
* @return ETrue if the sim card state is EPESimNotPresent and |
|
354 |
* the security mode is enabled, otherwise EFalse |
|
355 |
**/ |
|
356 |
IMPORT_C TBool IsSimStateNotPresentWithSecurityModeEnabled(); |
|
357 |
||
358 |
/** |
|
359 |
* Handle audio output availability change |
|
360 |
*/ |
|
361 |
void HandleAudioAvailableOutputChangedL(); |
|
362 |
||
363 |
/** |
|
364 |
* Shows 'Number busy' note. |
|
365 |
*/ |
|
366 |
IMPORT_C void ShowNumberBusyNoteL(); |
|
367 |
||
368 |
/** |
|
369 |
* Informs view that UI is being updated (call bubble or number editor). |
|
370 |
* EndUiUpdate() must be called when update is done. |
|
371 |
*/ |
|
372 |
IMPORT_C void BeginUiUpdateLC(); |
|
373 |
||
374 |
/** |
|
375 |
* Informs view that UI update is completed. |
|
376 |
*/ |
|
377 |
IMPORT_C void EndUiUpdate(); |
|
378 |
||
379 |
/* |
|
380 |
* Checks if necessary to show call termination note |
|
381 |
* |
|
382 |
* @param aCallId call id |
|
383 |
* @return true if note should be shown |
|
384 |
*/ |
|
385 |
IMPORT_C virtual TBool CheckIfShowCallTerminationNote( ); |
|
386 |
||
387 |
/* |
|
388 |
* Destroys touchpane buttons. |
|
389 |
*/ |
|
390 |
IMPORT_C void DeleteTouchPaneButtons(); |
|
391 |
||
392 |
/** |
|
393 |
* Set default flags values. |
|
394 |
* No active call |
|
395 |
*/ |
|
396 |
IMPORT_C void SetDefaultFlagsL(); |
|
397 |
||
398 |
/* |
|
399 |
* Sets ringtone playback. |
|
400 |
* @param aCallId call id |
|
401 |
*/ |
|
402 |
IMPORT_C void SetRingingTonePlaybackL( TInt aCallId ); |
|
403 |
||
404 |
/** |
|
405 |
* A message handling function for message EPEMessageDisconnecting |
|
406 |
* @param aCallId: the call id of the call |
|
407 |
*/ |
|
408 |
IMPORT_C void HandleDisconnectingL( TInt aCallId ); |
|
409 |
||
410 |
/** |
|
411 |
* Opens soft reject message editor. |
|
412 |
*/ |
|
413 |
IMPORT_C virtual void OpenSoftRejectMessageEditorL(); |
|
74 | 414 |
|
415 |
protected: |
|
37 | 416 |
|
417 |
/** |
|
74 | 418 |
* Sets toolbar loudspeaker button enabled. |
37 | 419 |
*/ |
74 | 420 |
IMPORT_C void SetToolbarButtonLoudspeakerEnabled(); |
421 |
||
37 | 422 |
/** |
74 | 423 |
* Sets state of TitleBar Back button |
424 |
*/ |
|
425 |
IMPORT_C void SetBackButtonActive( TBool aActive ); |
|
37 | 426 |
|
427 |
/** |
|
74 | 428 |
* Updates ui commands |
37 | 429 |
*/ |
74 | 430 |
IMPORT_C void UpdateUiCommands(); |
431 |
||
37 | 432 |
protected: |
433 |
||
434 |
/** |
|
435 |
* Checks if call is waiting, returns ETrue if call is waiting |
|
436 |
* otherwise EFalse. |
|
437 |
* @param aCallId, call id. |
|
438 |
*/ |
|
439 |
TBool IsWaitingCallL( const TInt aCallId ); |
|
440 |
||
441 |
/** |
|
442 |
* Checks status of KFeatureIdSideVolumeKeys and KTelephonyLVFlagScrollVolumeKeys |
|
443 |
* keys. If KTelephonyLVFlagScrollVolumeKeys is false and KFeatureIdSideVolumeKeys is true |
|
444 |
* then side volume keys are only supported and method returns true, otherwise false. |
|
445 |
*/ |
|
446 |
TBool OnlySideVolumeKeySupported(); |
|
447 |
||
448 |
/** |
|
449 |
* Checks if device has connected call ongoing. |
|
450 |
* List of connected call states: EPEStateConnected |
|
451 |
* EPEStateConnectedConference |
|
452 |
* EPEStateConnecting |
|
453 |
*/ |
|
454 |
TBool IsAnyConnectedCalls(); |
|
455 |
||
456 |
private: |
|
457 |
||
458 |
/** |
|
459 |
* Handle EPEMessageChangedCallDuration |
|
460 |
* @param aCallId call id of the message |
|
461 |
*/ |
|
462 |
void HandleChangedCallDurationL( TInt aCallId ); |
|
463 |
||
464 |
/** |
|
465 |
* Sends key down event to the phone engine |
|
466 |
* @param aKeyEvent a key event |
|
467 |
* @param aEventCode key event code |
|
468 |
*/ |
|
469 |
void SendKeyPressL( |
|
470 |
const TKeyEvent& aKeyEvent, |
|
471 |
TEventCode aEventCode ); |
|
472 |
||
473 |
/** |
|
474 |
* Sends key events to the phone engine |
|
475 |
* @param aKeyEvent a key event |
|
476 |
* @param aEventCode key event code |
|
477 |
*/ |
|
478 |
void SendKeyEventL( |
|
479 |
const TKeyEvent& aKeyEvent, |
|
480 |
TEventCode aEventCode ); |
|
481 |
||
482 |
/** |
|
483 |
* Change Audio volume level |
|
484 |
* @param aLevel New volume level. |
|
485 |
* @param aUpdateControl Set ETrue if volume ui control |
|
486 |
* needs to be updated. |
|
487 |
*/ |
|
488 |
void ChangeAudioVolumeL( TInt aLevel, |
|
489 |
TBool aUpdateControl = ETrue ); |
|
490 |
||
491 |
/** |
|
492 |
* Handles EPEMessageInitiatedEmergency call message from Phone Engine. |
|
493 |
* @param aCallId - Caller id. |
|
494 |
*/ |
|
495 |
void HandleInitiatedEmergencyCallL( TInt aCallId ); |
|
496 |
||
497 |
/** |
|
498 |
* Handles EPEMessageInitiatedEmergencyWhileActiveVideo message from |
|
499 |
* Phone Engine. |
|
500 |
*/ |
|
501 |
void HandleInitiatedEmergencyWhileActiveVideoL(); |
|
502 |
||
503 |
/** |
|
504 |
* Handles network ciphering info changes |
|
505 |
*/ |
|
506 |
void HandleCallSecureStatusChangeL( TInt aCallId ); |
|
507 |
||
508 |
/** |
|
509 |
* Active call id |
|
510 |
*/ |
|
511 |
TInt GetActiveCallIdL(); |
|
512 |
||
513 |
/** |
|
514 |
* Shows WLAN MAC address note |
|
515 |
*/ |
|
516 |
void ShowWlanMacAddressL(); |
|
74 | 517 |
|
37 | 518 |
/** |
519 |
* A message handling function for message EPEMessageRemoteBusy |
|
520 |
* @param aCallId a call id |
|
521 |
*/ |
|
522 |
void HandleRemoteBusyL( const TInt aCallId ); |
|
523 |
||
524 |
/** |
|
525 |
* TCleanupOperation to call EndUiUpdate(), if leave occurs |
|
526 |
* after BeginUiUpdate(). |
|
527 |
*/ |
|
528 |
static void UiUpdateCleanup(TAny* aThis ); |
|
529 |
||
530 |
/** |
|
531 |
* Gets volume level from ui control. |
|
532 |
*/ |
|
533 |
TInt GetVolumeLevel(); |
|
534 |
||
535 |
/** |
|
536 |
* Shows video call specific out of memory note. |
|
537 |
*/ |
|
538 |
void ShowVideoCallOutOfMemoryNoteL(); |
|
539 |
||
540 |
/** |
|
541 |
* Returns sim security status: |
|
542 |
* Rejected or UnAccepted. |
|
543 |
*/ |
|
544 |
TInt SimSecurityStatus() const; |
|
545 |
||
546 |
/** |
|
547 |
* Show CUG in use note |
|
548 |
*/ |
|
549 |
void HandleCugInUseNoteL(); |
|
550 |
||
551 |
/** |
|
552 |
* Handles changes in the SIM card state. |
|
553 |
*/ |
|
554 |
void HandleSimStateChangedL(); |
|
555 |
||
556 |
/* |
|
557 |
* Checks if keyevent is from dtmf key and sends it to phone-engine |
|
558 |
*/ |
|
559 |
void SendDtmfKeyEventL( const TKeyEvent& aKeyEvent, |
|
560 |
TEventCode aEventCode ); |
|
561 |
||
562 |
/** |
|
563 |
* Loads data commonengine stringloader. |
|
564 |
* @param aData - The returned data including needed text. |
|
565 |
* @param aResourceId - Resource id for text. |
|
566 |
*/ |
|
567 |
void LoadResource( TDes& aData, const TInt aResource ) const; |
|
568 |
||
569 |
protected: // Data |
|
570 |
||
571 |
/** |
|
572 |
* Reference to State machine |
|
573 |
*/ |
|
574 |
MPhoneStateMachine* iStateMachine; |
|
575 |
||
576 |
/** |
|
577 |
* Reference to the Phone UI View command handle |
|
578 |
*/ |
|
579 |
MPhoneViewCommandHandle* iViewCommandHandle; |
|
580 |
||
581 |
protected: |
|
582 |
||
583 |
/** |
|
584 |
* Customization of functionality according to e.g. |
|
585 |
* call type specific needs. |
|
586 |
* Not own. |
|
587 |
*/ |
|
588 |
MPhoneCustomization* iCustomization; |
|
589 |
||
590 |
// CBA key manager. Own. |
|
74 | 591 |
CPhoneUiCommandManager* iUiCommandManager; |
592 |
||
593 |
// Number entry manager |
|
594 |
CPhoneNumberEntryManager* iNumberEntryManager; |
|
595 |
||
37 | 596 |
|
597 |
private: |
|
598 |
||
74 | 599 |
// Previously handled SIM card state. |
37 | 600 |
TPESimState iPreviousSimState; |
601 |
||
602 |
// Internal variable for EikonEnv to avoid |
|
603 |
// use of static system calls |
|
74 | 604 |
CEikonEnv* iEnv; // Not owned |
37 | 605 |
}; |
606 |
||
607 |
#endif // CPHONESTATE_H |
|
608 |
||
609 |
// End of File |