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 the License "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "FusionPlayerTestAppUi.h" |
|
20 #include "FusionPlayerTestAppDocument.h" |
|
21 #include <mpxviewutility.h> |
|
22 |
|
23 // implementation is purely framework code. Document class not customised |
|
24 // in this application |
|
25 |
|
26 CFusionPlayerTestAppDocument* CFusionPlayerTestAppDocument::NewL(CEikApplication& aApp) |
|
27 { |
|
28 CFusionPlayerTestAppDocument* self = NewLC(aApp); |
|
29 CleanupStack::Pop(self); |
|
30 return self; |
|
31 } |
|
32 |
|
33 CFusionPlayerTestAppDocument* CFusionPlayerTestAppDocument::NewLC(CEikApplication& aApp) |
|
34 { |
|
35 CFusionPlayerTestAppDocument* self = new (ELeave) CFusionPlayerTestAppDocument(aApp); |
|
36 CleanupStack::PushL(self); |
|
37 self->ConstructL(); |
|
38 return self; |
|
39 } |
|
40 |
|
41 void CFusionPlayerTestAppDocument::ConstructL() |
|
42 { |
|
43 // Get view utility. View utility must be created before AppUi. |
|
44 iViewUtility = MMPXViewUtility::UtilityL(); |
|
45 } |
|
46 |
|
47 CFusionPlayerTestAppDocument::CFusionPlayerTestAppDocument(CEikApplication& aApp) : CAknDocument(aApp) |
|
48 { |
|
49 } |
|
50 |
|
51 CFusionPlayerTestAppDocument::~CFusionPlayerTestAppDocument() |
|
52 { |
|
53 if ( iViewUtility ) |
|
54 { |
|
55 iViewUtility->Close(); |
|
56 } |
|
57 } |
|
58 |
|
59 CEikAppUi* CFusionPlayerTestAppDocument::CreateAppUiL() |
|
60 { |
|
61 // Create the application user interface, and return a pointer to it |
|
62 CEikAppUi* appUi = new (ELeave) CFusionPlayerTestAppAppUi; |
|
63 return appUi; |
|
64 } |
|
65 |
|