uifw/AvKon/src/AknViewAppUi.cpp
branchRCL_3
changeset 25 941195f2d488
parent 23 3d340a0166ff
child 29 a8834a2e9a96
equal deleted inserted replaced
23:3d340a0166ff 25:941195f2d488
    45 #include "aknViewAppUi.h"
    45 #include "aknViewAppUi.h"
    46 
    46 
    47 // CONSTANTS
    47 // CONSTANTS
    48 const TInt KAknAppUiViewsGranularity = 1;
    48 const TInt KAknAppUiViewsGranularity = 1;
    49 const TInt KAknViewAsyncPriority = EActivePriorityRedrawEvents + 10;
    49 const TInt KAknViewAsyncPriority = EActivePriorityRedrawEvents + 10;
    50 const TUid KCRUidThemes = { 0x102818E8 }; // defined in pslninternalcrkeys.h
       
    51 const TUint32 KThemesTransitionEffects = 0x00000009; //defined in pslninternalcrkeys.h
       
    52 
    50 
    53 
    51 
    54 #ifdef RD_SPLIT_VIEW
    52 #ifdef RD_SPLIT_VIEW
    55 const TInt KAknSplitViewSize = 2;
    53 const TInt KAknSplitViewSize = 2;
    56 
    54 
   234 	    
   232 	    
   235 #ifdef RD_SPLIT_VIEW
   233 #ifdef RD_SPLIT_VIEW
   236 	iExtension->iNavigator = new ( ELeave ) CAknViewNavigator( this );
   234 	iExtension->iNavigator = new ( ELeave ) CAknViewNavigator( this );
   237 	AddToStackL( iExtension->iNavigator, ECoeStackPriorityDefault - 1, ECoeStackFlagRefusesFocus );
   235 	AddToStackL( iExtension->iNavigator, ECoeStackPriorityDefault - 1, ECoeStackFlagRefusesFocus );
   238 #endif // RD_SPLIT_VIEW
   236 #endif // RD_SPLIT_VIEW
   239 	
       
   240 	
       
   241 	// disable CAknLocalScreenClearer when fullscreen effect is on
       
   242 	CRepository *uiThemeCenRep =  CRepository::NewL( KCRUidThemes );
       
   243 	CleanupStack::PushL( uiThemeCenRep );
       
   244 	TInt effectValue = 0;
       
   245 	TBool themeEffectDisabled = ETrue;
       
   246 	if ( KErrNone == uiThemeCenRep->Get( KThemesTransitionEffects, effectValue ) )
       
   247         {
       
   248         themeEffectDisabled = effectValue & AknTransEffect::EFullScreenTransitionsOff;
       
   249         }
       
   250 
   237 
   251 	if ( iEikonEnv->RootWin().OrdinalPosition() == 0 && // only clear the window for foreground apps
   238 	if ( iEikonEnv->RootWin().OrdinalPosition() == 0 && // only clear the window for foreground apps
   252 	     iExtension->iUseDefaultScreenClearer && themeEffectDisabled )
   239 	     iExtension->iUseDefaultScreenClearer )
   253 		{
   240 		{
   254 		iClearer = CAknLocalScreenClearer::NewL( ETrue );
   241 		iClearer = CAknLocalScreenClearer::NewL( ETrue );
   255 		}
   242 		}
   256 	
       
   257 	CleanupStack::PopAndDestroy( uiThemeCenRep ); // uiThemeCenRep
       
   258 	
       
   259 	}
   243 	}
   260 
   244 
   261 // -----------------------------------------------------------------------------
   245 // -----------------------------------------------------------------------------
   262 // CAknViewAppUi::~CAknViewAppUi
   246 // CAknViewAppUi::~CAknViewAppUi
   263 // Destructor.
   247 // Destructor.