webengine/webkitutils/stmgesturefw/inc/gestureframeworkimpl.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:   
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GESTUREENGINEIMPL_H
       
    19 #define GESTUREENGINEIMPL_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 // forward declarations
       
    26 namespace stmUiEventEngine
       
    27 {
       
    28     class CStateMachine ;
       
    29     class MStateMachine ;
       
    30 }
       
    31 
       
    32 // CLASS DECLARATION
       
    33 namespace stmGesture
       
    34 {
       
    35 // Forward declarations
       
    36 class CGestureEngine ;
       
    37 class MGestureEngineIf ;
       
    38 
       
    39 /**
       
    40  *  CGestureFrameworkImpl
       
    41  *
       
    42  */
       
    43 NONSHARABLE_CLASS( CGestureFrameworkImpl ): public CBase
       
    44 {
       
    45 public:
       
    46     // Constructors and destructor
       
    47 
       
    48     /**
       
    49      * Destructor.
       
    50      */
       
    51     ~CGestureFrameworkImpl();
       
    52 
       
    53     /**
       
    54      * Two-phased constructor.
       
    55      */
       
    56     static CGestureFrameworkImpl* NewL();
       
    57 
       
    58     /**
       
    59      * Two-phased constructor.
       
    60      */
       
    61     static CGestureFrameworkImpl* NewLC();
       
    62     /*!
       
    63      *
       
    64      */
       
    65     MGestureEngineIf* getGestureEngine() ;
       
    66     /*!
       
    67      *
       
    68      */
       
    69     stmUiEventEngine::CStateMachine* getUiStateMachine() {return m_statemachine; }
       
    70 
       
    71 	void enableLogging(bool loggingEnabled) ;
       
    72 private:
       
    73 
       
    74     /**
       
    75      * Constructor for performing 1st stage construction
       
    76      */
       
    77     CGestureFrameworkImpl();
       
    78 
       
    79     /**
       
    80      * EPOC default constructor for performing 2nd stage construction
       
    81      */
       
    82     void ConstructL();
       
    83 
       
    84     CGestureEngine* m_gestureEngine ;
       
    85     stmUiEventEngine::CStateMachine*  m_statemachine ;
       
    86 	bool m_loggingenabled ;
       
    87 
       
    88 };
       
    89 } // namespace
       
    90 #endif // GESTUREENGINEIMPL_H