webengine/webkitutils/stmgesturefw/inc/unknowngesturerecogniser.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: Unknown gesture recognizer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UNKNOWNGESTURERECOGNISER_H_
       
    19 #define UNKNOWNGESTURERECOGNISER_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 /*!
       
    31  * CUnknownGestureRecogniser handles unknown gestures at ERelease
       
    32  * I.e. if no-one else has recognised a gesture when ERelease arrives,
       
    33  * This recogniser can be at the end of the list to inform the app
       
    34  * that something weird is happening...
       
    35  *
       
    36  */
       
    37 NONSHARABLE_CLASS( CUnknownGestureRecogniser ): public CGestureRecogniser
       
    38 {
       
    39 public:
       
    40     static const TGestureUid KUid = EGestureUidUnknown;
       
    41 
       
    42     /** Two-phase constructor */
       
    43     static CUnknownGestureRecogniser* NewL(MGestureListener* aListener);
       
    44     virtual ~CUnknownGestureRecogniser();
       
    45 
       
    46     /*!
       
    47      * MGestureRecogniserIf methods
       
    48      */
       
    49     virtual TGestureRecognitionState recognise(int numOfActiveStreams, MGestureEngineIf* ge) ;
       
    50     virtual void release(MGestureEngineIf* ge) ;
       
    51 
       
    52     virtual TGestureUid gestureUid() const
       
    53         {
       
    54         return KUid;
       
    55         }
       
    56 
       
    57 private:
       
    58     CUnknownGestureRecogniser(MGestureListener* aListener) ;
       
    59 
       
    60 };
       
    61 
       
    62 } // namespace
       
    63 
       
    64 #endif /* UNKNOWNGESTURERECOGNISER_H_ */