diff -r 1b758917cafc -r d721605b30d0 taskswitcher/taskswitcherui/taskswitcherapp/inc/tsappui.h --- a/taskswitcher/taskswitcherui/taskswitcherapp/inc/tsappui.h Wed Jun 09 09:29:04 2010 +0300 +++ b/taskswitcher/taskswitcherui/taskswitcherapp/inc/tsappui.h Mon Jun 21 15:27:11 2010 +0300 @@ -111,6 +111,13 @@ */ TBool IsForeground() const; + /** + * Checks if delayed foreground launch is taking place. + * + * @return ETrue if delayed foreground launch is in progress + */ + TBool DelayedForegroundLaunched(); + public: /** * From MTsCenrepChangeObserver @@ -176,6 +183,7 @@ TInt WgIdOfUnderlyingAppL( TBool aIgnoreParentChild ); static TInt GoToBackgroundTimerCallback( TAny* aParam ); + static TInt DelayedForegroundCallback( TAny* aParam ); /* * Returns id of top parent window group for embeded window group. @@ -198,6 +206,14 @@ * @return camera's window group id. */ TInt CheckForUnderlyingHiddenAppsL(); + + /** + * Checks if underlying application is multimedia application. + * + * @return ETrue if aplication on top of the app stack is multimedia application. + * Currently it recognises only camera app as multimedia app. + */ + TBool IsUnderlyingAppMultimediaL(); private: @@ -221,6 +237,11 @@ CPeriodic* iGoToBackgroundTimer; + // Delayed launch handling variables + CPeriodic* iForegroundDelayTimer; + TBool iForegroundDelayed; + TBool iDelayedForegroundInProgress; + TBool iEffectsEnabled; /**