|
1 /* |
|
2 * Copyright (c) 2006 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: VT UI window server event definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_VTUIWSEVENT_H |
|
20 #define T_VTUIWSEVENT_H |
|
21 |
|
22 #include <w32std.h> |
|
23 |
|
24 /** |
|
25 * TVtUiWsEvent |
|
26 * |
|
27 * VT UI WS event code enumerations. Name 'code' used instead of 'type' to keep |
|
28 * naming consistent with with window server. |
|
29 */ |
|
30 enum TVtUiWsEventCodes |
|
31 { |
|
32 // New number source activated |
|
33 EVtUiWsEventNumberSourceActivate = EEventUser + 6000, |
|
34 // Number source deactivated |
|
35 EVtUiWsEventNumberSourceDeactivate, |
|
36 // Enter rendering mode |
|
37 EVtUiWsEventBeginRenderingMode, |
|
38 // Leave rendering mode |
|
39 EVtUiWsEventEndRenderingMode |
|
40 }; |
|
41 |
|
42 /** |
|
43 * TVtUiWsEvent |
|
44 * |
|
45 * Base class for VT UI ws events |
|
46 * |
|
47 * @since S60 v3.2 |
|
48 */ |
|
49 template < class T > |
|
50 class TVtUiWsEvent : public TWsEvent |
|
51 { |
|
52 |
|
53 public: |
|
54 |
|
55 /** |
|
56 * Constructor |
|
57 * |
|
58 * @param aType Event type @see TVtUiWsEventCodes. |
|
59 */ |
|
60 inline TVtUiWsEvent( TInt aType, T* aData ); |
|
61 |
|
62 /** |
|
63 * Return data contained in this event. |
|
64 */ |
|
65 inline T* Data() const; |
|
66 |
|
67 }; |
|
68 |
|
69 #include "tvtuiwsevent.inl" |
|
70 |
|
71 #endif // T_VTUIWSEVENT_H |