1 /* |
|
2 * Copyright (c) 2002 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: Provisioning context list |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "CWPCxAppUi.h" |
|
21 |
|
22 #include <avkon.hrh> |
|
23 #include <hlplch.h> |
|
24 #include <ProvisioningCx.rsg> |
|
25 #include "CWPCxView.h" |
|
26 #include "CWPCxContainer.h" |
|
27 #include "provisioningCx.hrh" |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 // |
|
31 // ---------------------------------------------------------- |
|
32 // CWPCxAppUi::ConstructL() |
|
33 // ---------------------------------------------------------- |
|
34 // |
|
35 void CWPCxAppUi::ConstructL() |
|
36 { |
|
37 #ifdef __SERIES60_32__ |
|
38 BaseConstructL( EAknEnableSkin | EAknEnableMSK); |
|
39 #else |
|
40 BaseConstructL( EAknEnableSkin); |
|
41 #endif |
|
42 |
|
43 CWPCxView* view1 = new (ELeave) CWPCxView; |
|
44 |
|
45 CleanupStack::PushL( view1 ); |
|
46 view1->ConstructL(); |
|
47 AddViewL( view1 ); // transfer ownership to CAknViewAppUi |
|
48 CleanupStack::Pop(); // view1 |
|
49 } |
|
50 |
|
51 // Destructor |
|
52 CWPCxAppUi::~CWPCxAppUi() |
|
53 { |
|
54 } |
|
55 |
|
56 // ---------------------------------------------------- |
|
57 // CWPCxAppUi::HandleCommandL |
|
58 // ---------------------------------------------------- |
|
59 // |
|
60 void CWPCxAppUi::HandleCommandL(TInt aCommand) |
|
61 { |
|
62 switch ( aCommand ) |
|
63 { |
|
64 case EAknCmdHelp: |
|
65 { |
|
66 HlpLauncher::LaunchHelpApplicationL( iEikonEnv->WsSession(), AppHelpContextL() ); |
|
67 break; |
|
68 } |
|
69 case EEikCmdExit: |
|
70 { |
|
71 Exit(); |
|
72 break; |
|
73 } |
|
74 |
|
75 default: |
|
76 break; |
|
77 } |
|
78 } |
|
79 |
|
80 // End of File |
|