|
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 of CLWPLayerApp |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 4 % |
|
19 |
|
20 |
|
21 #include <eikstart.h> |
|
22 |
|
23 #include "lwplayerapp.h" |
|
24 #include "lwplayerdocument.h" |
|
25 #include "lwpuids.hrh" |
|
26 #include "mpxvideo_debug.h" |
|
27 |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CLWPlayerApp::AppDllUid() |
|
31 // Returns application UID |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 TUid CLWPlayerApp::AppDllUid() const |
|
35 { |
|
36 MPX_DEBUG(_L("CLWPlayerApp::AppDllUid()")); |
|
37 |
|
38 return KLWPLAYERUID; |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CLWPlayerApp::CreateDocumentL() |
|
43 // Creates CLWPlayerDocument object |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 CApaDocument* CLWPlayerApp::CreateDocumentL() |
|
47 { |
|
48 MPX_DEBUG(_L("CLWPlayerApp::CreateDocumentL()")); |
|
49 |
|
50 return CLWPlayerDocument::NewL( *this ); |
|
51 } |
|
52 |
|
53 // ========================= OTHER EXPORTED FUNCTIONS ========================== |
|
54 // |
|
55 // ----------------------------------------------------------------------------- |
|
56 // NewApplication() |
|
57 // Constructs CLWPlayerApp |
|
58 // Returns: created application object |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 LOCAL_C CApaApplication* NewApplication() |
|
62 { |
|
63 MPX_DEBUG(_L("CLWPlayerApp NewApplication()")); |
|
64 |
|
65 return new CLWPlayerApp; |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // E32Main |
|
70 // An entry point |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 GLDEF_C TInt E32Main() |
|
74 { |
|
75 MPX_DEBUG(_L("CLWPlayerApp E32Main()")); |
|
76 |
|
77 return EikStart::RunApplication(NewApplication); |
|
78 } |
|
79 |
|
80 // End of File |