uiacceltk/hitchcock/plugins/alftranseffect/alftranseffectplugin/src/wsserverdrawercontroller.cpp
branchRCL_3
changeset 34 3a60ebea00d0
parent 17 3ac8bf5c5014
child 49 c9d868f1e20c
equal deleted inserted replaced
24:f93c875b566e 34:3a60ebea00d0
    64 		0x101F8543, // Voice Commands, no effects when pressing send key long
    64 		0x101F8543, // Voice Commands, no effects when pressing send key long
    65 		0x10281855, // touch input server , no effects when the first time start up
    65 		0x10281855, // touch input server , no effects when the first time start up
    66 		// startup blocked because startup exit leaves the screen black.
    66 		// startup blocked because startup exit leaves the screen black.
    67 		// must be debugged
    67 		// must be debugged
    68         0x100058F4, // startup blocked for the time being
    68         0x100058F4, // startup blocked for the time being
    69         0x101f857A // camera
    69         0x101f857A, // camera
       
    70         0x2002d07f	// ovistore_2002D07F.exe, this does not draw anything, but launcher 
    70         // Application shell is Ok, folder open and close have KAknApplicationShellViewId
    71         // Application shell is Ok, folder open and close have KAknApplicationShellViewId
    71         // as both to and from ids. There is only one visual, so some sort of blur effect works...
    72         // as both to and from ids. There is only one visual, so some sort of blur effect works...
    72 		//, KAknApplicationShellViewId
    73 		//, KAknApplicationShellViewId
    73 		};		
    74 		};		
    74 
    75 
    82     the current ongoing effect will be aborted */
    83     the current ongoing effect will be aborted */
    83 const TUint KCustomNoEffectApps[] = 
    84 const TUint KCustomNoEffectApps[] = 
    84     {
    85     {
    85 	0x0, // DO NOT REMOVE 0x0! this is here for compile reasons, it will not be included in the AllowedCustomUid check
    86 	0x0, // DO NOT REMOVE 0x0! this is here for compile reasons, it will not be included in the AllowedCustomUid check
    86     0x101f857A, // camera
    87     0x101f857A, // camera
    87     0x2002A540  // conversation.exe , other launchable from messaging don't have effect either
    88     0x2002A540,  // conversation.exe , other launchable from messaging don't have effect either
    88 
    89     0x2002d07f // ovistore_2002D07F.exe, this does not draw anything, but launcher 
    89   //0xUID //Add UIds of applications that shouldn't have effects here
    90   //0xUID //Add UIds of applications that shouldn't have effects here
    90 	};
    91 	};
    91 
    92 
    92 // DISABLED! uncomment code in ConstructL that references this list to turn it on.
    93 // DISABLED! uncomment code in ConstructL that references this list to turn it on.
    93 /** Switching between from or to theese apps should have always effects */
    94 /** Switching between from or to theese apps should have always effects */
   483                 break;
   484                 break;
   484                 }
   485                 }
   485             }
   486             }
   486         
   487         
   487         iAppInfo[index].iAction = aAction;
   488         iAppInfo[index].iAction = aAction;
   488         RDebug::Printf("CAppInfoCache::SetAction - Returned action %d", iAppInfo[index].iAction);
   489         __ALFFXLOGSTRING1("CAppInfoCache::SetAction - Returned action %d", iAppInfo[index].iAction);
   489         return iAppInfo[index].iAction;
   490         return iAppInfo[index].iAction;
   490     }
   491     }
   491 
   492 
   492 TInt CAppInfoCache::Action(const TUid& aUid)
   493 TInt CAppInfoCache::Action(const TUid& aUid)
   493     {
   494     {
   741 			}	
   742 			}	
   742 		
   743 		
   743 		//Adding uid to block list			
   744 		//Adding uid to block list			
   744 		if(flags & AknTransEffect::TParameter::ENoEffects)
   745 		if(flags & AknTransEffect::TParameter::ENoEffects)
   745 			{
   746 			{
       
   747             __ALFFXLOGSTRING1("CWsServerDrawerController::BeginFullscreen - Add to block list 0x%x", toUid);
   746 			iStates->AddBlockUid(toUid);
   748 			iStates->AddBlockUid(toUid);
       
   749 			if (iLastToUid == aUid1)
       
   750 			    {
       
   751                 AbortTransition(EAbortFullscreen);
       
   752 			    }
   747 			}
   753 			}
   748 		//Removing uid from blocklist
   754 		//Removing uid from blocklist
   749 		if(flags & AknTransEffect::TParameter::EEnableEffects)	
   755 		if(flags & AknTransEffect::TParameter::EEnableEffects)	
   750 			{
   756 			{
       
   757             __ALFFXLOGSTRING1("CWsServerDrawerController::BeginFullscreen - Remove from block list 0x%x", toUid);
   751 			iStates->RemoveBlockUid(toUid);
   758 			iStates->RemoveBlockUid(toUid);
   752 			}
   759 			}
   753 		}
   760 		}
   754 		
   761 		
   755 	CStateHandler::TFullscreenType fstype = iStates->GetFullscreenType(iEngine->Action());
   762 	CStateHandler::TFullscreenType fstype = iStates->GetFullscreenType(iEngine->Action());
   802 	//dsa apps do not have effects
   809 	//dsa apps do not have effects
   803 	//this is one reason why for activation end cannot be called immediately after begin
   810 	//this is one reason why for activation end cannot be called immediately after begin
   804 	//we should know if its a dsa app before end can be called
   811 	//we should know if its a dsa app before end can be called
   805 	if(iDSAActive)
   812 	if(iDSAActive)
   806 	    {
   813 	    {
   807         __ALFFXLOGSTRING("CWsServerDrawerController::BeginFullscreen - Phone is booting. Abort.");
   814         __ALFFXLOGSTRING("CWsServerDrawerController::BeginFullscreen - DSA active. Abort.");
   808 	    return; //Do nothing if dsa active.
   815 	    return; //Do nothing if dsa active.
   809 	    }
   816 	    }
   810 
   817 
   811 	//Special argument calls does not initiate any FS effect and is caught here.
   818 	//Special argument calls does not initiate any FS effect and is caught here.
   812 	// TODO: remove && !iEngine->WaitingForRootWgId() when appuids available from wserv
       
   813 	if(fstype == CStateHandler::ENone) 
   819 	if(fstype == CStateHandler::ENone) 
   814 		{
   820 		{
   815         __ALFFXLOGSTRING("CWsServerDrawerController::BeginFullscreen - Phone is booting. Abort.");
   821         __ALFFXLOGSTRING("CWsServerDrawerController::BeginFullscreen - Special argument. Abort.");
   816 		return;
   822 		return;
   817 		}
   823 		}
   818 
   824 
   819 
   825 
   820 	//Phone is booting, stop any FS effect.
   826 	//Phone is booting, stop any FS effect.
   913         iLayoutChangeActive = EFalse;
   919         iLayoutChangeActive = EFalse;
   914         }
   920         }
   915     // Convert 
   921     // Convert 
   916 
   922 
   917     // Signal statemachine
   923     // Signal statemachine
       
   924     SaveLastActionAndUid();
   918     iStates->Signal(CStateBase::EBeginFullscreen);
   925     iStates->Signal(CStateBase::EBeginFullscreen);
   919 	// Start end checker always.
   926 	// Start end checker always.
   920 	if(flags & AknTransEffect::TParameter::EEndCheck)
   927 	if(flags & AknTransEffect::TParameter::EEndCheck)
   921 		{
   928 		{
   922 		StartEndChecker();
   929 		StartEndChecker();