diff -r 6297cdf66332 -r d39add9822e2 webengine/webkitutils/stmgesturefw/inc/gestureframeworkimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webengine/webkitutils/stmgesturefw/inc/gestureframeworkimpl.h Tue Feb 02 00:56:45 2010 +0200 @@ -0,0 +1,90 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef GESTUREENGINEIMPL_H +#define GESTUREENGINEIMPL_H + +// INCLUDES +#include +#include + +// forward declarations +namespace stmUiEventEngine +{ + class CStateMachine ; + class MStateMachine ; +} + +// CLASS DECLARATION +namespace stmGesture +{ +// Forward declarations +class CGestureEngine ; +class MGestureEngineIf ; + +/** + * CGestureFrameworkImpl + * + */ +NONSHARABLE_CLASS( CGestureFrameworkImpl ): public CBase +{ +public: + // Constructors and destructor + + /** + * Destructor. + */ + ~CGestureFrameworkImpl(); + + /** + * Two-phased constructor. + */ + static CGestureFrameworkImpl* NewL(); + + /** + * Two-phased constructor. + */ + static CGestureFrameworkImpl* NewLC(); + /*! + * + */ + MGestureEngineIf* getGestureEngine() ; + /*! + * + */ + stmUiEventEngine::CStateMachine* getUiStateMachine() {return m_statemachine; } + + void enableLogging(bool loggingEnabled) ; +private: + + /** + * Constructor for performing 1st stage construction + */ + CGestureFrameworkImpl(); + + /** + * EPOC default constructor for performing 2nd stage construction + */ + void ConstructL(); + + CGestureEngine* m_gestureEngine ; + stmUiEventEngine::CStateMachine* m_statemachine ; + bool m_loggingenabled ; + +}; +} // namespace +#endif // GESTUREENGINEIMPL_H