|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PENUIWNDEVENTHANDLER_H_ |
|
19 #define PENUIWNDEVENTHANDLER_H_ |
|
20 |
|
21 #include "penuiwndeventobserver.h" |
|
22 |
|
23 class CPeninputServer; |
|
24 |
|
25 /** |
|
26 * CPenUiWndEventHandler |
|
27 * |
|
28 * The pen ui window event handler |
|
29 * |
|
30 */ |
|
31 class CPenUiWndEventHandler : public CBase, public MPenUiWndEventObserver |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 * |
|
37 * @since symbian^3 |
|
38 * @param aServer the pointer to the owner of the control |
|
39 * @return Pointer to CPenUiCandidateWnd's instance |
|
40 */ |
|
41 static CPenUiWndEventHandler* NewL( CPeninputServer* aServer ); |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * |
|
46 * @since symbian^3 |
|
47 * @param aServer the pointer to the owner of the control |
|
48 * @return Pointer to CPenUiCandidateWnd's instance |
|
49 */ |
|
50 static CPenUiWndEventHandler* NewLC( CPeninputServer* aServer ); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 ~CPenUiWndEventHandler(); |
|
56 |
|
57 // From MPenUiWndEventObserver |
|
58 /** |
|
59 * Signal owner that there is an event |
|
60 * |
|
61 * @since symbian^3 |
|
62 * @param aEventType The event type |
|
63 * @param aEventData The event data |
|
64 */ |
|
65 virtual void SignalOwner( TInt aEventType, const TDesC& aEventData ); |
|
66 |
|
67 /** |
|
68 * Handle layout command event. |
|
69 * |
|
70 * @since symbian^3 |
|
71 * @param aCmd Command Id. |
|
72 * @param aData Data for command. |
|
73 */ |
|
74 virtual void HandleCommand( TInt aCmd, TUint8* aData ); |
|
75 |
|
76 private: |
|
77 |
|
78 /** |
|
79 * C++ Default Constructor |
|
80 */ |
|
81 CPenUiWndEventHandler( CPeninputServer* aServer ); |
|
82 |
|
83 /** |
|
84 * 2nd phase constructor. |
|
85 * |
|
86 * @since Symbain^3 |
|
87 * @return None |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 private: |
|
92 /** |
|
93 * The owner of the control |
|
94 * |
|
95 * Now own |
|
96 */ |
|
97 CPeninputServer* iServer; |
|
98 }; |
|
99 |
|
100 #endif /* PENUIWNDEVENTHANDLER_H_ */ |