taskswitcher/taskswitcherui/taskswitcherapp/inc/tsfastswaparea.h
branchRCL_3
changeset 47 7be2816dbabd
parent 38 79311d856354
child 50 137ebc85284b
--- a/taskswitcher/taskswitcherui/taskswitcherapp/inc/tsfastswaparea.h	Tue Apr 27 16:26:12 2010 +0300
+++ b/taskswitcher/taskswitcherui/taskswitcherapp/inc/tsfastswaparea.h	Tue May 11 16:02:39 2010 +0300
@@ -33,6 +33,7 @@
 class CAknQueryDialog;
 class CTsEventControler;
 class MTsDataChangeObserver;
+class CAknLongTapAnimation;
 
 /**
  * Taskswitcher Fast Swap area UI.
@@ -110,6 +111,11 @@
     void SwitchToApp( TInt aIndex );
     
     /**
+     * Brings the app with the give Uid into foreground
+     */
+    void SwitchToApp( const TUid& aUid );
+    
+    /**
      * Sends close msg to given app.
      * @param   aIndex      index
      * @param   aSuppressRendering  content is not refreshed if ETrue
@@ -223,6 +229,12 @@
      */
     TBool IsAppClosing( TInt aWgId );
     
+    /**
+     * Checks if app with the given window group id is present on taskswitcher
+     * list.
+     */
+    TBool WgOnTaskList( TInt aWgId );
+    
 public:    
     // from CCoeControl    
     TInt CountComponentControls() const;
@@ -253,6 +265,11 @@
 // new functions    
 
     /**
+     * Switches to another application.
+     */
+    void SwitchToApp( TInt aWgId, const TUid& aUid );
+    
+    /**
      * Makes a copy of the given bitmap.
      * Also scaled to the given size, but maintains aspect ratio,
      * so the size of the returned bitmap may be less then aSize.
@@ -396,7 +413,21 @@
      *          layout meta data functions.
      */
     TBool GetVariety( TInt& aVariety );
-        
+    
+    /**
+     * Cancels long tap animation.
+     */
+    void CancelLongTapAnimation( TBool aDisablePopup = ETrue );
+    
+    /**
+     * Checks if long tap animation should be shown in
+     * a given point.
+     * 
+     * @param  aHitPoint  point where tapped event is registered
+     * @return  ETrue if long animation is allowed for that position
+     */
+    TBool LongTapAnimForPos( const TPoint& aHitPoint );
+    
 private: // Data
     
     // parent control
@@ -434,6 +465,8 @@
     // Tap event
     TPointerEvent iTapEvent;
     CTsFastSwapTimer* iHighlightTimer;
+    TPoint iActivateOnPointerRelease;
+    TBool iHandlePointerCandidate;
     
     // View offset position, used by animation physics
     TInt iLogicalViewPosOffset;
@@ -455,6 +488,12 @@
     // App closing handling
     RArray<TInt> iIsClosing;
     TInt iWidgetClosingCount;
+    TInt iPrevAppCount;
+    
+    // Long tap animation
+    CAknLongTapAnimation* iLongTapAnimation;
+    CTsFastSwapTimer* iLongTapAnimationTimer;
+    TBool iLongTapAnimationRunning;
     };
 
 #endif // TSFASTSWAPAREA_H