|
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: Implementation class for WMDRM DLA App Ui |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "wmdrmdlaappui.h" |
|
20 #include "wmdrmdlabrowserview.h" |
|
21 #include "wmdrmdlaappconstants.h" |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // CWmDrmDlaAppUi::CWmDrmDlaAppUi |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CWmDrmDlaAppUi::CWmDrmDlaAppUi() |
|
30 { |
|
31 } |
|
32 |
|
33 // --------------------------------------------------------------------------- |
|
34 // CWmDrmDlaAppUi::ConstructL |
|
35 // --------------------------------------------------------------------------- |
|
36 // |
|
37 void CWmDrmDlaAppUi::ConstructL() |
|
38 { |
|
39 BaseConstructL( EAknEnableSkin | EAknSingleClickCompatible ); |
|
40 CWmDrmDlaBrowserView* browserView = CWmDrmDlaBrowserView::NewLC(); |
|
41 AddViewL( browserView ); |
|
42 CleanupStack::Pop( browserView ); |
|
43 iBrowserView = browserView; |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // CWmDrmDlaAppUi::~CWmDrmDlaAppUi |
|
48 // --------------------------------------------------------------------------- |
|
49 // |
|
50 CWmDrmDlaAppUi::~CWmDrmDlaAppUi() |
|
51 { |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------------------------- |
|
55 // CWmDrmDlaAppUi::BrowserView |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 CWmDrmDlaBrowserView* CWmDrmDlaAppUi::BrowserView() |
|
59 { |
|
60 return iBrowserView; |
|
61 } |
|
62 |
|
63 // --------------------------------------------------------------------------- |
|
64 // CWmDrmDlaAppUi::HandleCommandL |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 void CWmDrmDlaAppUi::HandleCommandL( TInt aCommand ) |
|
68 { |
|
69 switch ( aCommand ) |
|
70 { |
|
71 case EAknSoftkeyClose: |
|
72 case EAknSoftkeyExit: |
|
73 case EEikCmdExit: |
|
74 Exit(); |
|
75 break; |
|
76 |
|
77 default: |
|
78 break; |
|
79 } |
|
80 } |