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: CMnrpAppUiBack classimplementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <aknnavi.h> |
|
20 #include <aknnavide.h> |
|
21 |
|
22 #include "mnrpengine.h" |
|
23 #include "mnrpappuiback.h" |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 void CMnrpAppUiBack::ConstructL() |
|
31 { |
|
32 BaseConstructL( EAknEnableSkin ); |
|
33 // no view is created as this application is intended to be run |
|
34 // only as hidden server |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 void CMnrpAppUiBack::HandleCommandL(TInt aCommand) |
|
41 { |
|
42 switch(aCommand) |
|
43 { |
|
44 case EEikCmdExit: |
|
45 case EAknSoftkeyExit: |
|
46 Exit(); |
|
47 break; |
|
48 default: |
|
49 break; |
|
50 } |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 void CMnrpAppUiBack::MoveForeground() |
|
57 { |
|
58 RWindowGroup& window = iEikonEnv->RootWin(); |
|
59 window.SetOrdinalPosition( 0 ); |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------------------------- |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 void CMnrpAppUiBack::MoveBackground() |
|
66 { |
|
67 RWindowGroup& window = iEikonEnv->RootWin(); |
|
68 window.SetOrdinalPosition( -1 ); |
|
69 } |
|