|
1 /* |
|
2 * Copyright (c) 2008 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: Events Handler Server App Ui. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_EVTSERVERAPPUI_H |
|
19 #define C_EVTSERVERAPPUI_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <aknappui.h> |
|
23 |
|
24 class CEventReceiver; |
|
25 |
|
26 class CEvtServerAppUi : public CAknAppUi |
|
27 { |
|
28 public: |
|
29 /** |
|
30 * Default Constructor |
|
31 */ |
|
32 CEvtServerAppUi(); |
|
33 |
|
34 /** |
|
35 * Default Destructor |
|
36 */ |
|
37 ~CEvtServerAppUi(); |
|
38 |
|
39 /** |
|
40 * ConstructL. |
|
41 * 2nd phase constructor. |
|
42 */ |
|
43 void ConstructL(); |
|
44 |
|
45 /** |
|
46 * Sets the event receiver. |
|
47 * |
|
48 * @param aEventReceiver is set while creating AppUi. |
|
49 * Appui will send wssession events( EEventScreenDeviceChanged, |
|
50 * & EEventWindowVisibilityChanged) to CEventReceiver that |
|
51 * distributes it to its listeners. |
|
52 * |
|
53 */ |
|
54 void SetEventReceiver( CEventReceiver& aEventReceiver ); |
|
55 |
|
56 |
|
57 protected: |
|
58 |
|
59 /** |
|
60 * Handles window server events. |
|
61 * |
|
62 * @param aEvent The window server event that occurred. |
|
63 * @param aDestination The control associated with the event. |
|
64 * |
|
65 */ |
|
66 void HandleWsEventL( const TWsEvent& aEvent, CCoeControl* aDestination ); |
|
67 |
|
68 private: |
|
69 //handle to the event reciever. |
|
70 CEventReceiver* iEventReceiver; |
|
71 }; |
|
72 |
|
73 #endif //C_EVTSERVERAPPUI_H |
|
74 |