105 ( CCoeEnv::Static( KUidPhoneUILoggerSingleton ) ); |
105 ( CCoeEnv::Static( KUidPhoneUILoggerSingleton ) ); |
106 phoneLogger->SetPhoneEngine( iPhoneEngine ); |
106 phoneLogger->SetPhoneEngine( iPhoneEngine ); |
107 |
107 |
108 // Store the phone engine information in the state machine |
108 // Store the phone engine information in the state machine |
109 iStateMachine->SetPhoneEngine( iPhoneEngine ); |
109 iStateMachine->SetPhoneEngine( iPhoneEngine ); |
110 |
|
111 // Set Number Entry observer |
|
112 TPhoneCmdParamNumberEntryObserver cmdParamNumberEntryObserver; |
|
113 cmdParamNumberEntryObserver.SetObserver( TCallBack( HandlePhoneNumberEditorCallBack, this ) ); |
|
114 aViewCommandHandle->ExecuteCommand( EPhoneViewSetNumberEntryObserver, |
|
115 &cmdParamNumberEntryObserver); |
|
116 |
110 |
117 // Go to the startup state |
111 // Go to the startup state |
118 iStateMachine->ChangeState( EPhoneStateStartup ); |
112 iStateMachine->ChangeState( EPhoneStateStartup ); |
119 |
113 |
120 CPhoneMediatorFactory::Instance()->CommandListener( this, iStateMachine, |
114 CPhoneMediatorFactory::Instance()->CommandListener( this, iStateMachine, |
225 } |
219 } |
226 else |
220 else |
227 { |
221 { |
228 iStateMachine->State()->HandleDtmfKeyToneL( aKeyEvent, aEventCode ); |
222 iStateMachine->State()->HandleDtmfKeyToneL( aKeyEvent, aEventCode ); |
229 } |
223 } |
230 |
|
231 |
|
232 |
224 |
233 return EKeyWasNotConsumed; |
225 return EKeyWasNotConsumed; |
234 } |
|
235 |
|
236 // --------------------------------------------------------- |
|
237 // CPhoneUIController::DynInitMenuPaneL |
|
238 // --------------------------------------------------------- |
|
239 // |
|
240 EXPORT_C void CPhoneUIController::DynInitMenuPaneL( |
|
241 TInt aResourceId, |
|
242 CEikMenuPane* aMenuPane ) |
|
243 { |
|
244 __ASSERT_DEBUG( iSystemEventHandler, Panic( EPhoneCtrlInvariant ) ); |
|
245 iSystemEventHandler->DynInitMenuPaneL( aResourceId, aMenuPane ); |
|
246 } |
|
247 |
|
248 // --------------------------------------------------------- |
|
249 // CPhoneUIController::DynInitMenuBarL |
|
250 // --------------------------------------------------------- |
|
251 // |
|
252 EXPORT_C void CPhoneUIController::DynInitMenuBarL( |
|
253 TInt aResourceId, |
|
254 CEikMenuBar* aMenuBar ) |
|
255 { |
|
256 __ASSERT_DEBUG( iSystemEventHandler, Panic( EPhoneCtrlInvariant ) ); |
|
257 iSystemEventHandler->DynInitMenuBarL( aResourceId, aMenuBar ); |
|
258 } |
226 } |
259 |
227 |
260 // --------------------------------------------------------- |
228 // --------------------------------------------------------- |
261 // CPhoneUIController::HandleSystemEventL |
229 // CPhoneUIController::HandleSystemEventL |
262 // --------------------------------------------------------- |
230 // --------------------------------------------------------- |