|
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 |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <eikstart.h> |
|
21 #include "wmdrmdlaapp.h" |
|
22 #include "wmdrmdlaappdocument.h" |
|
23 #include "wmdrmdlaappserver.h" |
|
24 #include "wmdrmdlaappconstants.h" |
|
25 |
|
26 // ================= MEMBER FUNCTIONS ======================= |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // CWmDrmDlaApp::CreateDocumentL |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 CApaDocument* CWmDrmDlaApp::CreateDocumentL() |
|
33 { |
|
34 return CWmDrmDlaAppDocument::NewL( *this ); |
|
35 } |
|
36 |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // CWmDrmDlaApp::AppDllUid |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 TUid CWmDrmDlaApp::AppDllUid() const |
|
43 { |
|
44 return KWmDrmDlaAppUid; |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // CWmDrmDlaApp::NewAppServerL |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 void CWmDrmDlaApp::NewAppServerL( CApaAppServer*& aAppServer ) |
|
52 { |
|
53 aAppServer = new (ELeave) CWmDrmDlaAppServer; |
|
54 } |
|
55 |
|
56 // ================= OTHER FUNCTIONS ============== |
|
57 |
|
58 /** |
|
59 * Create application object. |
|
60 * @return The created application object. |
|
61 */ |
|
62 LOCAL_C CApaApplication* NewApplication() |
|
63 { |
|
64 return new CWmDrmDlaApp; |
|
65 } |
|
66 |
|
67 /** |
|
68 * Executable entry point. |
|
69 * @return Error code. |
|
70 */ |
|
71 GLDEF_C TInt E32Main() |
|
72 { |
|
73 return EikStart::RunApplication( NewApplication ); |
|
74 } |