taskswitcher/taskswitcherui/taskswitcherapp/inc/tsfastswapgrid.h
branchRCL_3
changeset 102 ba63c83f4716
parent 88 3321d3e205b6
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
    20 #define TSFASTSWAPGRID_H_
    20 #define TSFASTSWAPGRID_H_
    21 
    21 
    22 #include <AknGrid.h>
    22 #include <AknGrid.h>
    23 #include <aknconsts.h>
    23 #include <aknconsts.h>
    24 #include "tsdevicestate.h"
    24 #include "tsdevicestate.h"
    25 #include "tsfastswapareautils.h"
       
    26 
    25 
    27 class CAknsFrameBackgroundControlContext;
    26 class CAknsFrameBackgroundControlContext;
       
    27 class CTsFastSwapTimer;
    28 
    28 
    29 /**
    29 /**
    30  * Observer for handling fast swap grid events
    30  * Observer for handling fast swap grid events
    31  */
    31  */
    32 class MTsFastSwapGridObserver
    32 class MTsFastSwapGridObserver
    37      * 
    37      * 
    38      * @param  aItemIdx  index of the the item for which close icon
    38      * @param  aItemIdx  index of the the item for which close icon
    39      *                   has been tapped
    39      *                   has been tapped
    40      */
    40      */
    41     virtual void HandleCloseEventL( TInt aItemIdx ) = 0;
    41     virtual void HandleCloseEventL( TInt aItemIdx ) = 0;
       
    42     };
       
    43 
       
    44 
       
    45 class MTsFastSwapTimerObserver
       
    46     {
       
    47 public:
       
    48     /**
       
    49      * Called when timer is completed
       
    50      */
       
    51     virtual void TimerCompletedL( CTsFastSwapTimer* aSource ) = 0;
    42     };
    52     };
    43 
    53 
    44 
    54 
    45 /**
    55 /**
    46  * Avkon grid implementing custom item drawer
    56  * Avkon grid implementing custom item drawer
   363     RArray<TInt> iStrokeItems;
   373     RArray<TInt> iStrokeItems;
   364     TRect iStrokeRect;
   374     TRect iStrokeRect;
   365     };
   375     };
   366 
   376 
   367 
   377 
       
   378 
       
   379 /**
       
   380  * Timer class for handling highlight bevaiour
       
   381  */
       
   382 class CTsFastSwapTimer : public CTimer
       
   383     {
       
   384 public:
       
   385     // Constructor
       
   386     CTsFastSwapTimer( MTsFastSwapTimerObserver& aObserver );
       
   387     // Destructor
       
   388     ~CTsFastSwapTimer();
       
   389     // 2nd phase constructor
       
   390     void ConstructL();
       
   391     
       
   392 private: // From CTimer
       
   393     void RunL();
       
   394     
       
   395 private: // Data
       
   396     MTsFastSwapTimerObserver* iObserver; // not own
       
   397     };
       
   398 
   368 #endif /* TSFASTSWAPGRID_H_ */
   399 #endif /* TSFASTSWAPGRID_H_ */