|
1 /* |
|
2 * Copyright (c) 2003 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 CDRMRightsMgrApp class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <eikstart.h> |
|
21 |
|
22 #include "drmrightsmgrapp.h" |
|
23 #include "drmrightsmgrdocument.h" |
|
24 |
|
25 |
|
26 // ================= MEMBER FUNCTIONS ======================= |
|
27 // |
|
28 // --------------------------------------------------------- |
|
29 // CDRMRightsMgrApp::AppDllUid |
|
30 // --------------------------------------------------------- |
|
31 // |
|
32 TUid CDRMRightsMgrApp::AppDllUid() const |
|
33 { |
|
34 return KUidDRMRightsManager; |
|
35 } |
|
36 |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // CDRMRightsMgrApp::CreateDocumentL |
|
40 // --------------------------------------------------------- |
|
41 // |
|
42 CApaDocument* CDRMRightsMgrApp::CreateDocumentL() |
|
43 { |
|
44 return CDRMRightsMgrDocument::NewL( *this ); |
|
45 } |
|
46 |
|
47 |
|
48 // ================= OTHER FUNCTIONS ======================= |
|
49 // |
|
50 |
|
51 // --------------------------------------------------------- |
|
52 // NewApplication |
|
53 // --------------------------------------------------------- |
|
54 // |
|
55 LOCAL_C CApaApplication* NewApplication() |
|
56 { |
|
57 return new CDRMRightsMgrApp; |
|
58 } |
|
59 |
|
60 |
|
61 // --------------------------------------------------------- |
|
62 // E32Main |
|
63 // --------------------------------------------------------- |
|
64 // |
|
65 GLDEF_C TInt E32Main() |
|
66 { |
|
67 return EikStart::RunApplication( NewApplication ); |
|
68 } |
|
69 |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // Panic |
|
73 // --------------------------------------------------------- |
|
74 // |
|
75 void Panic( TInt aReason ) |
|
76 { |
|
77 _LIT( KAppName, "DRM RightsMgrUI" ); |
|
78 User::Panic( KAppName, aReason ); |
|
79 } |
|
80 |
|
81 |
|
82 // End of File |