webengine/webkitutils/stmgesturefw/inc/leftrightgesturerecogniser.h
changeset 65 5bfc169077b2
parent 42 d39add9822e2
child 66 cacf6ee57968
equal deleted inserted replaced
42:d39add9822e2 65:5bfc169077b2
     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: LeftRight Gesture Recognizer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LEFTRIGHTGESTURERECOGNISER_H_
       
    19 #define LEFTRIGHTGESTURERECOGNISER_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( CLeftrightGestureRecogniser ): public CGestureRecogniser
       
    31 {
       
    32 public:
       
    33     static const TGestureUid KUid = EGestureUidLeftRight;
       
    34 
       
    35     static CLeftrightGestureRecogniser* NewL(MGestureListener* aListener);
       
    36 
       
    37     virtual ~CLeftrightGestureRecogniser();
       
    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 private:
       
    50     CLeftrightGestureRecogniser(MGestureListener* aListener) ;
       
    51 };
       
    52 
       
    53 }
       
    54 
       
    55 #endif /* LEFTRIGHTGESTURERECOGNISER_H_ */