diff -r 4ea6f81c838a -r 0e9bb658ef58 widgetmodel/alfwidgetmodel/inc/alfwidgeteventhandlerimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/widgetmodel/alfwidgetmodel/inc/alfwidgeteventhandlerimpl.h Wed Sep 01 12:23:18 2010 +0100 @@ -0,0 +1,103 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: Class for private implementation for AlfWidgetEventHandler. +* +*/ + + +#ifndef ALFWIDGETEVENTHANDLERIMPL_H +#define ALFWIDGETEVENTHANDLERIMPL_H + +#include +#include +#include +#include "alfeventinput.h" +#include "alfeventoutput.h" +#include "alfanimationoutput.h" + +using namespace osncore; + +namespace Alf + { + +/** + * Widget event handler internal implementation. + */ +OSN_NONSHARABLE_CLASS( AlfWidgetEventHandlerImpl ) + { +public: + + /** + * constructor. + * + * @param aEventHandlerType Event handler type. + * It can be presentaion related or logical. + * @param aEventHandlerExecutionPhase Event handler exceution phase. + * It can be tunneling phase/bubbling phase/both. + */ + AlfWidgetEventHandlerImpl(IAlfWidgetEventHandler::AlfEventHandlerType aEventHandlerType, + IAlfWidgetEventHandler::AlfEventHandlerExecutionPhase aEventHandlerExecutionPhase); + + /** + * Destructor. + */ + virtual ~AlfWidgetEventHandlerImpl(); + +private: + /** + * Destructor. + */ + void construct(); + +public: // data + + AlfPtrVectormInputs; + AlfPtrVector mPointerInputs; + AlfPtrVector mOutputs; + AlfPtrVector mAnimationOutputs; + AlfPtrVector mWidgetAttributeOutputs; + AlfPtrVector mWidgetAttributeInputs; + AlfPtrVector mCancelOutputs; + AlfPtrVector mAnimationCancelOutputs; + AlfPtrVector mStateChangeOutputs; + AlfPtrVector mEventPasserInputs; + AlfPtrVector mEventPasserOutputs; + +#ifdef RD_TACTILE_FEEDBACK + AlfPtrVector mTactileOutputs; +#endif // RD_TACTILE_FEEDBACK + AlfPtrVector mWidgetEventOutputSignals; + AlfPtrVector mAppEventOutputs; + + unsigned int mActiveStates; + bool mCapturing; + /** + * Event handler init data + */ + AlfWidgetEventHandlerInitData mEhData; + + /* + * Type of event handler. It can be presentaion related or logical. + */ + IAlfWidgetEventHandler::AlfEventHandlerType mEventHandlerType; + + /* + * Event handler exceution phase. It can be tunneling phase/bubbling phase/both. + */ + IAlfWidgetEventHandler::AlfEventHandlerExecutionPhase mEventHandlerExecutionPhase; + }; + + } // namespace Alf + +#endif // C_ALFWIDGETEVENTHANDLERIMPL_H