|
1 /* |
|
2 * Copyright (c) 2009 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: The private implementation file for WidgetEventHandler. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "alfwidgeteventhandlerimpl.h" |
|
20 |
|
21 using namespace Alf; |
|
22 |
|
23 |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 |
|
26 // --------------------------------------------------------------------------- |
|
27 // ?description_if_needed |
|
28 // --------------------------------------------------------------------------- |
|
29 // |
|
30 AlfWidgetEventHandlerImpl::AlfWidgetEventHandlerImpl( |
|
31 IAlfWidgetEventHandler::AlfEventHandlerType aEventHandlerType, |
|
32 IAlfWidgetEventHandler::AlfEventHandlerExecutionPhase aEventHandlerExecutionPhase): |
|
33 mActiveStates( ~0 ), // By default active in all states |
|
34 mCapturing( false ), |
|
35 mEventHandlerType(aEventHandlerType), |
|
36 mEventHandlerExecutionPhase(aEventHandlerExecutionPhase) |
|
37 { |
|
38 construct(); |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // ?description_if_needed |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 void AlfWidgetEventHandlerImpl::construct() |
|
46 { |
|
47 mInputs.setAutoDelete( true ); |
|
48 mEhData.mWidgetEventHandlerId = 0; |
|
49 mEhData.mNode = 0; |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // ?description_if_needed |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 AlfWidgetEventHandlerImpl::~AlfWidgetEventHandlerImpl() |
|
57 { |
|
58 mInputs.clear(); |
|
59 mPointerInputs.clear(); |
|
60 mOutputs.clear(); |
|
61 mCancelOutputs.clear(); |
|
62 mAnimationOutputs.clear(); |
|
63 mAnimationCancelOutputs.clear(); |
|
64 mWidgetAttributeOutputs.clear(); |
|
65 mWidgetAttributeInputs.clear(); |
|
66 #ifdef RD_TACTILE_FEEDBACK |
|
67 mTactileOutputs.clear(); |
|
68 #endif // RD_TACTILE_FEEDBACK |
|
69 mWidgetEventOutputSignals.clear(); |
|
70 mStateChangeOutputs.clear(); |
|
71 mEventPasserInputs.clear(); |
|
72 mEventPasserOutputs.clear(); |
|
73 mAppEventOutputs.clear(); |
|
74 if (mEhData.mWidgetEventHandlerId) |
|
75 { |
|
76 delete[] mEhData.mWidgetEventHandlerId; |
|
77 } |
|
78 } |
|
79 |
|
80 // End of File. |