skins/AknSkins/src/AknsAppSkinInstance.cpp
branchRCL_3
changeset 106 e4e3998ddda2
parent 58 a2f9480e2280
child 107 9f95a5546443
equal deleted inserted replaced
100:9dbe1b043bea 106:e4e3998ddda2
    56 // C++ default constructor can NOT contain any code, that might leave.
    56 // C++ default constructor can NOT contain any code, that might leave.
    57 // -----------------------------------------------------------------------------
    57 // -----------------------------------------------------------------------------
    58 //
    58 //
    59 CAknsAppSkinInstance::CAknsAppSkinInstance() :
    59 CAknsAppSkinInstance::CAknsAppSkinInstance() :
    60     CCoeStatic( KAknsSkinInstanceTls, EThread ), iChangeEventsEnabled( ETrue ),
    60     CCoeStatic( KAknsSkinInstanceTls, EThread ), iChangeEventsEnabled( ETrue ),
    61     iChangeEventPending( EFalse ), iAppConfigurationCenrepNotUsed( EFalse ),
    61     iChangeEventPending( EFalse ), iAppConfigurationCenrepNotUsed( EFalse )
    62     iAnimationBackgroundDisabled( EFalse ), iAppUid( TUid::Null() )
       
    63     // CBase initializes: iChunkLookup(0), iRenderer(0), iMasterLayout(0),
    62     // CBase initializes: iChunkLookup(0), iRenderer(0), iMasterLayout(0),
    64     //                    iVariantHlAnimStatus(0)
    63     //                    iVariantHlAnimStatus(0)
    65     {
    64     {
    66     }
    65     }
    67 
    66 
   506         iUpdateInProgress = ETrue;
   505         iUpdateInProgress = ETrue;
   507         RemoveAndDestroyFromCache( KAknsIIDWallpaper );
   506         RemoveAndDestroyFromCache( KAknsIIDWallpaper );
   508         iLayoutBmpArray.ResetAndDestroy();
   507         iLayoutBmpArray.ResetAndDestroy();
   509         iUpdateInProgress = EFalse;
   508         iUpdateInProgress = EFalse;
   510         iLastChangeReason = EWallpaperChange;
   509         iLastChangeReason = EWallpaperChange;
   511 
   510         //NotifyItemDefChange(EFalse);
   512         // Get App Uid if have not done
       
   513         if ( iAppUid.iUid == NULL )
       
   514             {
       
   515             CEikAppUi* appui = CEikonEnv::Static()->EikAppUi();
       
   516             if ( appui )
       
   517                 {
       
   518                 CEikApplication* app = appui->Application();
       
   519                 if ( app )
       
   520                     {
       
   521                     iAppUid = app->AppDllUid();
       
   522                     }
       
   523                 }
       
   524             }
       
   525         
       
   526         // Send wallpaper changed event only to Phone App
       
   527         const TUid KPhoneAppUid = {0x100058B3};
       
   528         if ( iAppUid == KPhoneAppUid )
       
   529             {
       
   530             NotifyItemDefChange( EFalse );
       
   531             }
       
   532         }
   511         }
   533     else if ( aReason == EAknsSkinStatusAnimBackgroundChanged )
   512     else if ( aReason == EAknsSkinStatusAnimBackgroundChanged )
   534         {
   513         {
   535         TRAP_IGNORE( InitAnimBackgroundL( ) );
   514         TRAP_IGNORE( InitAnimBackgroundL( ) );
   536         NotifyItemDefChange(EFalse);
   515         NotifyItemDefChange(EFalse);
   777             }
   756             }
   778         else
   757         else
   779             {
   758             {
   780             // Do not create an entry for typed miss, otherwise we might hide
   759             // Do not create an entry for typed miss, otherwise we might hide
   781             // a real item
   760             // a real item
   782             delete itemData;
       
   783             return NULL;
   761             return NULL;
   784             }
   762             }
   785         }
   763         }
   786     else
   764     else
   787         {
   765         {
  1339         return ETrue;
  1317         return ETrue;
  1340         }
  1318         }
  1341     return EFalse;
  1319     return EFalse;
  1342     }
  1320     }
  1343 
  1321 
  1344 // -----------------------------------------------------------------------------
       
  1345 // CAknsAppSkinInstance::SetAnimationBackgroundDisabledL
       
  1346 // -----------------------------------------------------------------------------
       
  1347 //
       
  1348 void CAknsAppSkinInstance::SetAnimationBackgroundDisabledL( TBool aDisabled )
       
  1349     {
       
  1350     iAnimationBackgroundDisabled = aDisabled;
       
  1351     }
       
  1352 
       
  1353 // -----------------------------------------------------------------------------
       
  1354 // CAknsAppSkinInstance::AnimationBackgroundDisabled
       
  1355 // -----------------------------------------------------------------------------
       
  1356 //   
       
  1357 TBool CAknsAppSkinInstance::AnimationBackgroundDisabled() const
       
  1358     {
       
  1359     return iAnimationBackgroundDisabled;
       
  1360     }
       
  1361 
       
  1362 //  End of File
  1322 //  End of File