webengine/webkitutils/stmgesturefw/inc/pangesturerecogniser.h
changeset 28 d39add9822e2
equal deleted inserted replaced
27:6297cdf66332 28:d39add9822e2
       
     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 the License "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:Pan Gesture Recognizer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PANGESTURERECOGNISER_H_
       
    19 #define PANGESTURERECOGNISER_H_
       
    20 
       
    21 #include "rt_gestureengineif.h"
       
    22 #include <rt_gestureif.h>
       
    23 #include <rt_gesturelistener.h>
       
    24 
       
    25 class CCoeControl ;
       
    26 
       
    27 namespace stmGesture
       
    28 {
       
    29 
       
    30 NONSHARABLE_CLASS( CPanGestureRecogniser ): public CGestureRecogniser
       
    31 {
       
    32 public:
       
    33     static const TGestureUid KUid = EGestureUidPan;
       
    34 
       
    35     static CPanGestureRecogniser* NewL(MGestureListener* aListener);
       
    36 
       
    37     virtual ~CPanGestureRecogniser();
       
    38     /*!
       
    39      * MGestureRecogniserIf methods
       
    40      */
       
    41     virtual TGestureRecognitionState recognise(int numOfActiveStreams, MGestureEngineIf* ge) ;
       
    42     virtual void release(MGestureEngineIf* ge) ;
       
    43 
       
    44     virtual TGestureUid gestureUid() const
       
    45         {
       
    46         return KUid;
       
    47         }
       
    48 
       
    49     virtual void setPanningSpeedLow(float aSpeed) __SOFTFP ;
       
    50     virtual void setPanningSpeedHigh(float aSpeed) __SOFTFP ;   // speeds above this are flicks
       
    51 
       
    52 private:
       
    53     CPanGestureRecogniser(MGestureListener* aListener) ;
       
    54 
       
    55 private:
       
    56     float m_panningspeedlow ;
       
    57     float m_panningspeedhigh ;
       
    58 };
       
    59 
       
    60 }
       
    61 
       
    62 #endif /* PANGESTURERECOGNISER_H_ */