equal
deleted
inserted
replaced
66 |
66 |
67 // Create the phone engine handler |
67 // Create the phone engine handler |
68 iEngineHandler = CPhoneEngineHandler::NewL( iStateMachine ); |
68 iEngineHandler = CPhoneEngineHandler::NewL( iStateMachine ); |
69 // Create the system event handler |
69 // Create the system event handler |
70 iSystemEventHandler = CPhoneSystemEventHandler::NewL( iStateMachine ); |
70 iSystemEventHandler = CPhoneSystemEventHandler::NewL( iStateMachine ); |
71 // Create the remote control handler |
71 |
72 iRemoteControlHandler = CPhoneRemoteControlHandler::NewL( iStateMachine ); |
|
73 // Create the key event forwarder |
72 // Create the key event forwarder |
74 iKeyEventForwarder = CPhoneKeyEventForwarder::NewL( |
73 iKeyEventForwarder = CPhoneKeyEventForwarder::NewL( |
75 CEikonEnv::Static()->EikAppUi()->ClientRect(), iStateMachine, &aViewController ); |
74 CEikonEnv::Static()->EikAppUi()->ClientRect(), iStateMachine, &aViewController ); |
76 |
75 |
77 TInt leaveCode( 0 ); |
76 TInt leaveCode( 0 ); |
176 EXPORT_C void CPhoneUIController::HandleMessage( |
175 EXPORT_C void CPhoneUIController::HandleMessage( |
177 const TInt aMessage, |
176 const TInt aMessage, |
178 const TInt aCallId ) |
177 const TInt aCallId ) |
179 { |
178 { |
180 __PHONELOGENGINEMSG( aMessage, aCallId ); |
179 __PHONELOGENGINEMSG( aMessage, aCallId ); |
|
180 |
|
181 // PhoneCmdHandler is using Call information API so |
|
182 // Remote Control Handler can be constructed only after CCCE is constructed. |
|
183 if ( aMessage == EPEMessagePEConstructionReady ) |
|
184 { |
|
185 TRAP_IGNORE( ConstructRemoteControlHandlerL() ); |
|
186 } |
|
187 |
181 TRAPD( err, iEngineHandler->DoHandleMessageL( aMessage, aCallId ) ); |
188 TRAPD( err, iEngineHandler->DoHandleMessageL( aMessage, aCallId ) ); |
182 |
189 |
183 if ( err != KErrNone ) |
190 if ( err != KErrNone ) |
184 { |
191 { |
185 __PHONELOG2( |
192 __PHONELOG2( |
413 void CPhoneUIController::DoHandlePhoneNumberEditorCallBack() |
420 void CPhoneUIController::DoHandlePhoneNumberEditorCallBack() |
414 { |
421 { |
415 iStateMachine->State()->HandleNumberEntryEdited(); |
422 iStateMachine->State()->HandleNumberEntryEdited(); |
416 } |
423 } |
417 |
424 |
|
425 // --------------------------------------------------------- |
|
426 // CPhoneUIController::ConstructRemoteControlHandlerL |
|
427 // --------------------------------------------------------- |
|
428 // |
|
429 void CPhoneUIController::ConstructRemoteControlHandlerL() |
|
430 { |
|
431 // Create the remote control handler |
|
432 iRemoteControlHandler = CPhoneRemoteControlHandler::NewL( iStateMachine ); |
|
433 } |
|
434 |
418 // End of File |
435 // End of File |