taskswitcher/taskswitcherui/taskswitcherapp/inc/tsappview.h
branchRCL_3
changeset 9 f966699dea19
parent 4 4d54b72983ae
child 16 9674c1a575e9
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    20 #define TSAPPVIEW_H
    20 #define TSAPPVIEW_H
    21 
    21 
    22 #include <e32base.h> 
    22 #include <e32base.h> 
    23 #include <coecntrl.h>
    23 #include <coecntrl.h>
    24 #include <AknPopupFader.h>
    24 #include <AknPopupFader.h>
       
    25 #include <touchfeedback.h>
    25 #include "tsdevicestate.h"
    26 #include "tsdevicestate.h"
    26 #include "tsdatachangeobserver.h"
    27 #include "tsdatachangeobserver.h"
    27 #include "tseventcontrolerobserver.h"
    28 #include "tseventcontrolerobserver.h"
    28 
    29 
    29 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    47      * Two-phase constructor.
    48      * Two-phase constructor.
    48      * 
    49      * 
    49      * @param aRect Area where view should draw itself.
    50      * @param aRect Area where view should draw itself.
    50      */
    51      */
    51     static CTsAppView* NewL(const TRect& aRect,
    52     static CTsAppView* NewL(const TRect& aRect,
    52             CTsDeviceState& aDeviceState);
    53             CTsDeviceState& aDeviceState,
       
    54             RWindowGroup& aWg);
    53 
    55 
    54     /**
    56     /**
    55      * @copydoc NewL
    57      * @copydoc NewL
    56      */
    58      */
    57     static CTsAppView* NewLC(const TRect& aRect,
    59     static CTsAppView* NewLC(const TRect& aRect,
    58             CTsDeviceState& aDeviceState);
    60             CTsDeviceState& aDeviceState,
       
    61             RWindowGroup& aWg);
    59 
    62 
    60     /**
    63     /**
    61      * Destructor.
    64      * Destructor.
    62      */
    65      */
    63     ~CTsAppView();
    66     ~CTsAppView();
    91     //Own
    94     //Own
    92     /*
    95     /*
    93      * Forward app key handling to fasswaparea control.
    96      * Forward app key handling to fasswaparea control.
    94      */
    97      */
    95     void HandleAppKey(TInt aType);
    98     void HandleAppKey(TInt aType);
       
    99     
       
   100     /**
       
   101      * Orders window invalidation to perform full
       
   102      * background redraw.
       
   103      */
       
   104     void OrderFullWindowRedraw();
    96 
   105 
    97 protected:
   106 protected:
    98     // from MCoeControlObserver
   107     // from MCoeControlObserver
    99     void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType );
   108     void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType );
   100 
   109 
   114 private:
   123 private:
   115 
   124 
   116     /**
   125     /**
   117      * @copydoc NewL
   126      * @copydoc NewL
   118      */
   127      */
   119     void ConstructL( const TRect& aRect );
   128     void ConstructL( const TRect& aRect, RWindowGroup& aWg );
   120 
   129 
   121     /**
   130     /**
   122      * C++ constructor.
   131      * C++ constructor.
   123      */
   132      */
   124     CTsAppView( CTsDeviceState& aDeviceState );
   133     CTsAppView( CTsDeviceState& aDeviceState );
   162      * Disables transition animations for taskswitcher app.
   171      * Disables transition animations for taskswitcher app.
   163      * (the automatic effects that are applied when coming/leaving foreground)
   172      * (the automatic effects that are applied when coming/leaving foreground)
   164      */
   173      */
   165     void DisableAppSwitchEffects();
   174     void DisableAppSwitchEffects();
   166     
   175     
       
   176     /**
       
   177      * Launches feedback through MTouchFeedback::Instance()
       
   178      * 
       
   179      * @param aType         - The logical feedback type to play.
       
   180      * @param aFeedbackType - Feedback types to be played as a bitmask 
       
   181      *                        combination of enumeration items from
       
   182      *                        TTouchFeedbackType
       
   183      * @param aPointerEvent - Pointer event, which triggered this feedback.
       
   184      */
       
   185     void LaunchFeedback( TTouchLogicalFeedback aType,
       
   186 		TTouchFeedbackType aFeedbackType,
       
   187 		const TPointerEvent& aPointerEvent);
       
   188     
       
   189 
   167     
   190     
   168 public://From MTsEventControlerObserver
   191 public://From MTsEventControlerObserver
   169     /**
   192     /**
   170      * Declare drag gesture handling.
   193      * Declare drag gesture handling.
   171      * @param aOffset - drag distance
   194      * @param aOffset - drag distance
   185     virtual void LongTapL(const TPoint& aPoint);
   208     virtual void LongTapL(const TPoint& aPoint);
   186     
   209     
   187     /**
   210     /**
   188      * 
   211      * 
   189      */
   212      */
   190     virtual void Drag(
   213     virtual void DragL(
   191         const AknTouchGestureFw::MAknTouchGestureFwDragEvent& aEvent);
   214         const AknTouchGestureFw::MAknTouchGestureFwDragEvent& aEvent);
   192     
   215     
   193     /**
   216     /**
   194      * Declare animation stop handling
   217      * Declare animation stop handling
   195      */
   218      */