webengine/webkitutils/stmgesturefw/inc/updowngesturerecogniser.h
changeset 42 d39add9822e2
equal deleted inserted replaced
38:6297cdf66332 42: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: Updown Gesture Recognizer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UPDOWNGESTURERECOGNISER_H_
       
    19 #define UPDOWNGESTURERECOGNISER_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( CUpdownGestureRecogniser ): public CGestureRecogniser
       
    31 {
       
    32 public:
       
    33     static const TGestureUid KUid = EGestureUidUpDown;
       
    34 
       
    35     static CUpdownGestureRecogniser* NewL(MGestureListener* aListener);
       
    36 
       
    37     virtual ~CUpdownGestureRecogniser();
       
    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     CUpdownGestureRecogniser(MGestureListener* aListener) ;
       
    51 };
       
    52 
       
    53 }
       
    54 
       
    55 #endif /* UPDOWNGESTURERECOGNISER_H_ */