widgetmodel/alfwidgetmodel/inc/alfwidgeteventhandlerimpl.h
branchRCL_3
changeset 26 0e9bb658ef58
parent 0 e83bab7cf002
equal deleted inserted replaced
25:4ea6f81c838a 26:0e9bb658ef58
       
     1 /*
       
     2 * Copyright (c) 2007 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 "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:   Class for private implementation for AlfWidgetEventHandler.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ALFWIDGETEVENTHANDLERIMPL_H
       
    20 #define ALFWIDGETEVENTHANDLERIMPL_H
       
    21 
       
    22 #include <osn/alfptrvector.h>
       
    23 #include <osn/osndefines.h>
       
    24 #include <alf/ialfwidgeteventhandler.h>
       
    25 #include "alfeventinput.h"
       
    26 #include "alfeventoutput.h"
       
    27 #include "alfanimationoutput.h"
       
    28 
       
    29 using namespace osncore;
       
    30 
       
    31 namespace Alf
       
    32     {
       
    33 
       
    34 /**
       
    35  *  Widget event handler internal implementation.
       
    36  */
       
    37 OSN_NONSHARABLE_CLASS( AlfWidgetEventHandlerImpl )
       
    38     {
       
    39 public:
       
    40 
       
    41     /**
       
    42      * constructor.
       
    43      * 
       
    44      * @param aEventHandlerType            Event handler type. 
       
    45      *                                     It can be presentaion related or logical.
       
    46      * @param aEventHandlerExecutionPhase  Event handler exceution phase. 
       
    47      *                                     It can be tunneling phase/bubbling phase/both.
       
    48      */
       
    49     AlfWidgetEventHandlerImpl(IAlfWidgetEventHandler::AlfEventHandlerType aEventHandlerType,
       
    50          IAlfWidgetEventHandler::AlfEventHandlerExecutionPhase aEventHandlerExecutionPhase);
       
    51 
       
    52     /**
       
    53     * Destructor.
       
    54     */
       
    55     virtual ~AlfWidgetEventHandlerImpl();
       
    56 
       
    57 private:
       
    58     /**
       
    59        * Destructor.
       
    60        */
       
    61     void construct();
       
    62 
       
    63 public: // data
       
    64 
       
    65     AlfPtrVector<AlfEventInput>mInputs;
       
    66     AlfPtrVector<AlfPointerEventInput> mPointerInputs;
       
    67     AlfPtrVector<AlfEventOutput> mOutputs;
       
    68     AlfPtrVector<AlfAnimationOutput> mAnimationOutputs;
       
    69     AlfPtrVector<AlfWidgetAttributeOutput> mWidgetAttributeOutputs;
       
    70     AlfPtrVector<AlfWidgetAttributeInput> mWidgetAttributeInputs;
       
    71     AlfPtrVector<AlfEventCancelOutput> mCancelOutputs;
       
    72     AlfPtrVector<AlfAnimationCancelOutput> mAnimationCancelOutputs;
       
    73     AlfPtrVector<AlfStateChangeOutput> mStateChangeOutputs;
       
    74     AlfPtrVector<AlfEventPasserInput> mEventPasserInputs;
       
    75     AlfPtrVector<AlfEventPasserOutput> mEventPasserOutputs;
       
    76 
       
    77 #ifdef RD_TACTILE_FEEDBACK
       
    78     AlfPtrVector<AlfTactileOutput> mTactileOutputs;
       
    79 #endif // RD_TACTILE_FEEDBACK
       
    80     AlfPtrVector<AlfEventOutputSignal> mWidgetEventOutputSignals;
       
    81     AlfPtrVector<AlfAppEventOutput> mAppEventOutputs;
       
    82 
       
    83     unsigned int mActiveStates;
       
    84     bool mCapturing;
       
    85     /**
       
    86      * Event handler init data
       
    87      */
       
    88     AlfWidgetEventHandlerInitData mEhData;
       
    89     
       
    90     /*
       
    91      * Type of event handler. It can be presentaion related or logical.
       
    92      */
       
    93     IAlfWidgetEventHandler::AlfEventHandlerType mEventHandlerType;
       
    94 
       
    95     /*
       
    96      * Event handler exceution phase. It can be tunneling phase/bubbling phase/both.
       
    97      */
       
    98     IAlfWidgetEventHandler::AlfEventHandlerExecutionPhase mEventHandlerExecutionPhase;
       
    99     };
       
   100 
       
   101     } // namespace Alf
       
   102 
       
   103 #endif // C_ALFWIDGETEVENTHANDLERIMPL_H