phoneapp/phoneuicontrol/src/cphoneuicontroller.cpp
changeset 77 2be0b271d017
parent 72 c76a0b1755b9
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
   224         
   224         
   225     return EKeyWasNotConsumed;
   225     return EKeyWasNotConsumed;
   226     }
   226     }
   227 
   227 
   228 // ---------------------------------------------------------
   228 // ---------------------------------------------------------
   229 // CPhoneUIController::HandleSystemEventL
       
   230 // ---------------------------------------------------------
       
   231 //
       
   232 EXPORT_C void CPhoneUIController::HandleSystemEventL( const TWsEvent& aEvent )
       
   233     {
       
   234     __ASSERT_DEBUG( iSystemEventHandler, Panic( EPhoneCtrlInvariant ) );
       
   235     iSystemEventHandler->HandleSystemEventL( aEvent );
       
   236     }
       
   237 
       
   238 // ---------------------------------------------------------
       
   239 // CPhoneUIController::HandleForegroundEventL
       
   240 // ---------------------------------------------------------
       
   241 //
       
   242 EXPORT_C void CPhoneUIController::HandleForegroundEventL( TBool aForeground )
       
   243     {
       
   244     __ASSERT_DEBUG( iSystemEventHandler, Panic( EPhoneCtrlInvariant ) );
       
   245     iSystemEventHandler->HandleForegroundEventL( aForeground );
       
   246     }
       
   247 
       
   248 // ---------------------------------------------------------
       
   249 // CPhoneUIController::HandlePhoneForegroundEventL
       
   250 // ---------------------------------------------------------
       
   251 //
       
   252 EXPORT_C void CPhoneUIController::HandlePhoneForegroundEventL()
       
   253     {
       
   254     __ASSERT_DEBUG( iSystemEventHandler, Panic( EPhoneCtrlInvariant ) );
       
   255     iSystemEventHandler->HandlePhoneForegroundEventL();
       
   256     }
       
   257 
       
   258 // ---------------------------------------------------------
       
   259 // CPhoneUIController::HandlePhoneFocusLostEventL
       
   260 // ---------------------------------------------------------
       
   261 //
       
   262 EXPORT_C void CPhoneUIController::HandlePhoneFocusLostEventL()
       
   263     {
       
   264     __ASSERT_DEBUG( iSystemEventHandler, Panic( EPhoneCtrlInvariant ) );
       
   265     iSystemEventHandler->HandlePhoneFocusLostEventL();
       
   266     }
       
   267 
       
   268 // ---------------------------------------------------------
       
   269 // CPhoneUIController::HandleIdleForegroundEventL
       
   270 // ---------------------------------------------------------
       
   271 //
       
   272 EXPORT_C void CPhoneUIController::HandleIdleForegroundEventL()
       
   273     {
       
   274     __ASSERT_DEBUG( iSystemEventHandler, Panic( EPhoneCtrlInvariant ) );
       
   275     iSystemEventHandler->HandleIdleForegroundEventL();
       
   276     }
       
   277 
       
   278 // ---------------------------------------------------------
       
   279 // CPhoneUIController::HandlePhoneStartupL
   229 // CPhoneUIController::HandlePhoneStartupL
   280 // ---------------------------------------------------------
   230 // ---------------------------------------------------------
   281 //
   231 //
   282 EXPORT_C void CPhoneUIController::HandlePhoneStartupL()
   232 EXPORT_C void CPhoneUIController::HandlePhoneStartupL()
   283     {
   233     {
   304     {
   254     {
   305     __ASSERT_DEBUG( iStateMachine->State(), Panic( EPhoneCtrlInvariant ) );
   255     __ASSERT_DEBUG( iStateMachine->State(), Panic( EPhoneCtrlInvariant ) );
   306     return iStateMachine->State()->ProcessCommandL( aCommand );
   256     return iStateMachine->State()->ProcessCommandL( aCommand );
   307     }
   257     }
   308 
   258 
   309 
   259 // ---------------------------------------------------------
   310 // ---------------------------------------------------------
   260 // CPhoneUIController::EngineInfo
   311 // CPhoneUIController::HandleKeyLockEnabled
   261 // ---------------------------------------------------------
   312 // ---------------------------------------------------------
   262 //
   313 //
   263 EXPORT_C MPEEngineInfo* CPhoneUIController::EngineInfo()
   314 EXPORT_C void CPhoneUIController::HandleKeyLockEnabled( TBool aKeylockEnabled )
   264     {
   315     {
   265     return iEngineInfo;
   316     iSystemEventHandler->HandleKeyLockEnabled( aKeylockEnabled );
       
   317     }
   266     }
   318 
   267 
   319 // ---------------------------------------------------------
   268 // ---------------------------------------------------------
   320 // CPhoneUIController::CreateProtocolDllL
   269 // CPhoneUIController::CreateProtocolDllL
   321 // ---------------------------------------------------------
   270 // ---------------------------------------------------------