taskswitcher/taskswitcherui/taskswitcherapp/inc/tseventcontrolerobserver.h
changeset 4 4d54b72983ae
child 9 f966699dea19
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Define gesture observer interface
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TSGESTUREOBSERVER_H
       
    20 #define TSGESTUREOBSERVER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <akntouchgesturefw.h>
       
    24 
       
    25 /**
       
    26  * MTsGestureObserver
       
    27  * Define gesture observer interface
       
    28  */
       
    29 NONSHARABLE_CLASS(MTsEventControlerObserver)
       
    30     {
       
    31 public:
       
    32     /**
       
    33      * Declare drag gesture handling.
       
    34      * @param aOffset - drag distance
       
    35      */
       
    36     virtual void MoveOffset(const TPoint& aOffset)=0;
       
    37     
       
    38     /**
       
    39      * Declare tap gesture handling.
       
    40      * @param aPoint - tap position
       
    41      */
       
    42     virtual void TapL(const TPoint& aPoint)=0;
       
    43     
       
    44     /**
       
    45      * Declare long tap gesture handling.
       
    46      * @param aPoint - tap position
       
    47      */
       
    48     virtual void LongTapL(const TPoint& aPoint)=0;
       
    49     
       
    50     /**
       
    51      * Declare drag gesture handling.
       
    52      * @param aEvent - drag event
       
    53      */
       
    54     virtual void Drag(const AknTouchGestureFw::MAknTouchGestureFwDragEvent& aEvent) =0;
       
    55     
       
    56     /**
       
    57      * Declare animation stop handling
       
    58      */
       
    59     virtual void Stop()=0;
       
    60     
       
    61     /**
       
    62      * Declare getter for view position
       
    63      */
       
    64     virtual TPoint ViewPos() const =0;
       
    65     };
       
    66 
       
    67 #endif // TSGESTUREOBSERVER_H