--- a/taskswitcher/taskswitcherui/taskswitcherapp/inc/tsappui.h Fri Mar 26 15:15:17 2010 +0200
+++ b/taskswitcher/taskswitcherui/taskswitcherapp/inc/tsappui.h Wed May 12 13:12:59 2010 +0300
@@ -51,7 +51,8 @@
ENoneTransition = 0,
EForegroundTransition = 3,
EBackgroundTransition = 4,
- EActivationTransition = 5
+ EActivationTransition = 5,
+ EActivationAppShowTransition = 1507,
};
/**
@@ -80,7 +81,9 @@
/**
* Function start transition
*/
- void StartTransion( TUint aTransitionType );
+ void StartTransion( TUint aTransitionType,
+ TUid aNextAppUid = TUid::Null(),
+ TInt aWgId = 0 );
/**
* from MGfxTransEffectObserver
@@ -88,7 +91,9 @@
void TransitionFinished(const CCoeControl* aControl, TUint aAction);
void MoveAppToForeground( TUint aTransitionType );
- void MoveAppToBackground( TUint aTransitionType );
+ void MoveAppToBackground( TUint aTransitionType,
+ TUid aAppUid = TUid::Null(),
+ TInt aWgId = 0 );
/**
* Functions for showing/hiding popups.
@@ -96,6 +101,11 @@
void RequestPopUpL();
void DisablePopUpL();
+ /**
+ * Function for layout change check
+ */
+ TBool LayoutChangeAllowed();
+
public:
/**
* From MTsCenrepChangeObserver
@@ -112,11 +122,15 @@
void HandleResourceChangeL( TInt aType );
void HandleForegroundEventL( TBool aForeground );
void HandleCommandL( TInt aCommand );
+ void HandleWsEventL(const TWsEvent& aEvent,
+ CCoeControl* aDestination);
void StartTransition( TUint aTranstionId,
TBool aVisibility,
TBool aLayers,
TUint aSubCom );
+
+ void StartAppActivateTransition( TUid aNextAppUid, TInt aWgId );
private: // New functions
@@ -144,8 +158,33 @@
* task switcher app
*/
void FreeMemoryRequest();
+
+ /**
+ * Returns id of window group lying beneath task
+ * switcher window group.
+ * In case of embeded app it returns top paren window group.
+ *
+ * @param aIgnoreParentChild if set to ETrue, parent/child relationship
+ * will be ignored when deteriminig window
+ * group id
+ */
+ TInt WgIdOfUnderlyingApp( TBool aIgnoreParentChild );
static TInt GoToBackgroundTimerCallback( TAny* aParam );
+
+ /*
+ * Returns id of top parent window group for embeded window group.
+ * @param aChildWg embeded window group id
+ * @return top parent window group id or 0 in case od standlalone
+ */
+ TInt GetTopParentWg( TInt aChildWg);
+
+ /*
+ * Returns id of parent window group for embeded window group.
+ * @param aChildWg embeded window group id
+ * @return parent window group id or 0 in case od standlalone
+ */
+ TInt GetParentWg( TInt aChildWg );
private:
@@ -182,6 +221,12 @@
// Monitors popup mode
TBool iIsPopUpShown;
+ // For starting in background
+ TBool iUiStarted;
+ TBool iDisableAppKeyHandling;
+
+ TInt iUnderAppWgId;
+
};
#endif // TSAPPUI_H