|
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 //#include <internaleventdispatcher.h> |
|
19 #include "evtserverappui.h" |
|
20 #include "evtdebug.h" |
|
21 |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // CEvtServerAppUi::ConstructL() |
|
25 // Symbian 2nd phase constructor can leave. |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 void CEvtServerAppUi::ConstructL() |
|
29 { |
|
30 // Initialise app UI with no resource file. |
|
31 BaseConstructL( ENoAppResourceFile ); |
|
32 |
|
33 // Hide S60 signal strength icons etc. |
|
34 //StatusPane()->MakeVisible( EFalse ); |
|
35 |
|
36 // Disable Focus |
|
37 //iCoeEnv->RootWin().EnableReceiptOfFocus(EFalse); |
|
38 |
|
39 EVTUIDEBUG( "= before HideApplicationFromFSW( ETrue )" ); |
|
40 // Send to background |
|
41 TApaTask task(iEikonEnv->WsSession()); |
|
42 task.SetWgId( CEikonEnv::Static()->RootWin().Identifier()); |
|
43 task.SendToBackground(); |
|
44 |
|
45 // Hide from Fast swap |
|
46 HideApplicationFromFSW( ETrue ); |
|
47 EVTUIDEBUG( "= after HideApplicationFromFSW( ETrue )" ); |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CEvtServerAppUi::CEvtServerAppUi() |
|
52 // C++ default constructor can NOT contain any code, that might leave. |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 CEvtServerAppUi::CEvtServerAppUi() : iEventReceiver( NULL ) |
|
56 { |
|
57 |
|
58 } |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CEvtServerAppUi::~CEvtServerAppUi() |
|
62 // Destructor. |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 CEvtServerAppUi::~CEvtServerAppUi() |
|
66 { |
|
67 |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // CEvtServerAppUi::HandleWsEventL |
|
72 // Takes care of WsSwssion events |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 void CEvtServerAppUi::HandleWsEventL( const TWsEvent &aEvent, CCoeControl *aDestination ) |
|
76 { |
|
77 CAknAppUi::HandleWsEventL( aEvent,aDestination ); |
|
78 } |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // CEvtServerAppUi::HandleCommandL() |
|
82 // Sets the event reciever |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 void CEvtServerAppUi::SetEventReceiver( CEventReceiver& aEventReceiver ) |
|
86 { |
|
87 iEventReceiver = &aEventReceiver; |
|
88 } |
|
89 //end of file |