idlehomescreen/nativeuicontroller/src/appui.cpp
branchRCL_3
changeset 11 ff572dfe6d86
parent 9 f966699dea19
equal deleted inserted replaced
9:f966699dea19 11:ff572dfe6d86
   195         return; // for lint
   195         return; // for lint
   196         }
   196         }
   197 
   197 
   198     iFwEventHandler = iUiCtl->FwEventHandler();
   198     iFwEventHandler = iUiCtl->FwEventHandler();
   199    
   199    
   200     TAiIdleKeySoundConfig keySoundConfig;
       
   201     keySoundConfig.iKeySounds = KeySounds();
       
   202     keySoundConfig.iContextResId = R_NATIVEUI_DEFAULT_SKEY_LIST;
       
   203     iIdleIntegration = CAiUiIdleIntegration::NewL
       
   204         ( *iEikonEnv, keySoundConfig, iFwEventHandler );
       
   205 
       
   206     iUiCtl->SetAppUi( this );
   200     iUiCtl->SetAppUi( this );
   207 
   201 
   208     if( iFwEventHandler )
   202     if( iFwEventHandler )
   209         {
   203         {
   210         iFwEventHandler->AppEnvReadyL();
   204         iFwEventHandler->AppEnvReadyL();
   211         }
   205         }
       
   206     
   212     TBool isFullScreen = EFalse;
   207     TBool isFullScreen = EFalse;
   213     //Get pointer to status pane
   208     //Get pointer to status pane
   214     CEikStatusPane* statusPane = static_cast<CAknAppUi*>( iEikonEnv->EikAppUi() )->StatusPane();
   209     CEikStatusPane* statusPane = static_cast<CAknAppUi*>( iEikonEnv->EikAppUi() )->StatusPane();
   215     if( statusPane )
   210     if( statusPane )
   216         {
   211         {
   269     iNotifyHandler = CCenRepNotifyHandler::NewL( *this,
   264     iNotifyHandler = CCenRepNotifyHandler::NewL( *this,
   270                                                  *iAIRepository,
   265                                                  *iAIRepository,
   271                                                  CCenRepNotifyHandler::EIntKey,
   266                                                  CCenRepNotifyHandler::EIntKey,
   272                                                  KAiStatusPaneLayout );
   267                                                  KAiStatusPaneLayout );
   273     iNotifyHandler->StartListeningL();
   268     iNotifyHandler->StartListeningL();
   274 
   269     
   275     if( iFwEventHandler )
   270     TAiIdleKeySoundConfig keySoundConfig;
   276         {
   271     keySoundConfig.iKeySounds = KeySounds();
   277         iFwEventHandler->HandleUiReadyEventL(*iUiCtl);
   272     keySoundConfig.iContextResId = R_NATIVEUI_DEFAULT_SKEY_LIST;
   278         }
   273     iIdleIntegration = CAiUiIdleIntegration::NewL
       
   274         ( *iEikonEnv, keySoundConfig, iFwEventHandler );
   279 
   275 
   280     // Check powerkey availability
   276     // Check powerkey availability
   281     FeatureManager::InitializeLibL();
   277     FeatureManager::InitializeLibL();
   282     iFeatureNoPowerKey =
   278     iFeatureNoPowerKey =
   283         FeatureManager::FeatureSupported( KFeatureIdNoPowerkey );
   279         FeatureManager::FeatureSupported( KFeatureIdNoPowerkey );
   623     {
   619     {
   624     if( iStanbyContainerIF )
   620     if( iStanbyContainerIF )
   625         {
   621         {
   626         iStanbyContainerIF->StartL();
   622         iStanbyContainerIF->StartL();
   627         }
   623         }
       
   624     
       
   625     if( iFwEventHandler )
       
   626         {
       
   627         iFwEventHandler->HandleUiReadyEventL( *iUiCtl );
       
   628         }           
   628     }
   629     }
   629 
   630 
   630 void CAppUi::HandleNotifyInt( TUint32 aId, TInt aNewValue )
   631 void CAppUi::HandleNotifyInt( TUint32 aId, TInt aNewValue )
   631     {
   632     {
   632     // Set status pane on the fly.
   633     // Set status pane on the fly.