|
1 /* |
|
2 * Copyright (c) 2007 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 that implements the MDrmErrorHandling |
|
15 * API |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include "drmautomatedusageerrorhandling.h" |
|
21 #include "drmautomatedusageimpl.h" |
|
22 |
|
23 // ======== MEMBER FUNCTIONS ======== |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // Constructor |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 DRM::CDrmAutomatedUsageErrorHandling::CDrmAutomatedUsageErrorHandling() |
|
30 { |
|
31 } |
|
32 |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // DRM::CDrmAutomatedUsageErrorHandling::ConstructL |
|
36 // Second phase constructor |
|
37 // --------------------------------------------------------------------------- |
|
38 // |
|
39 void DRM::CDrmAutomatedUsageErrorHandling::ConstructL( |
|
40 DRM::CDrmAutomatedUsageImpl* aImplementation ) |
|
41 { |
|
42 iImplementation = aImplementation; |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------------------------- |
|
46 // Two-phased constructor |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 EXPORT_C DRM::CDrmAutomatedUsageErrorHandling* |
|
50 DRM::CDrmAutomatedUsageErrorHandling::NewL( |
|
51 DRM::CDrmAutomatedUsageImpl* aImplementation ) |
|
52 { |
|
53 DRM::CDrmAutomatedUsageErrorHandling* self( |
|
54 DRM::CDrmAutomatedUsageErrorHandling::NewLC( aImplementation ) ); |
|
55 CleanupStack::Pop( self ); |
|
56 return self; |
|
57 } |
|
58 |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // Two-phased constructor |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 EXPORT_C DRM::CDrmAutomatedUsageErrorHandling* |
|
65 DRM::CDrmAutomatedUsageErrorHandling::NewLC( |
|
66 DRM::CDrmAutomatedUsageImpl* aImplementation ) |
|
67 { |
|
68 DRM::CDrmAutomatedUsageErrorHandling* self( |
|
69 new ( ELeave ) DRM::CDrmAutomatedUsageErrorHandling ); |
|
70 CleanupStack::PushL( self ); |
|
71 self->ConstructL( aImplementation ); |
|
72 return self; |
|
73 } |
|
74 |
|
75 |
|
76 // --------------------------------------------------------------------------- |
|
77 // Destructor |
|
78 // --------------------------------------------------------------------------- |
|
79 // |
|
80 DRM::CDrmAutomatedUsageErrorHandling::~CDrmAutomatedUsageErrorHandling() |
|
81 { |
|
82 } |
|
83 |
|
84 // --------------------------------------------------------------------------- |
|
85 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL |
|
86 // RFile based asynchronous method |
|
87 // --------------------------------------------------------------------------- |
|
88 // |
|
89 EXPORT_C TInt DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL( |
|
90 RFile& aFile, |
|
91 ContentAccess::TIntent aIntent, |
|
92 TInt aError, |
|
93 DRM::MDrmHandleErrorObserver& aObserver ) |
|
94 { |
|
95 return iImplementation->HandleErrorAsyncL( aFile, |
|
96 aIntent, |
|
97 aError, |
|
98 aObserver ); |
|
99 } |
|
100 |
|
101 // --------------------------------------------------------------------------- |
|
102 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL |
|
103 // RFile based method |
|
104 // --------------------------------------------------------------------------- |
|
105 // |
|
106 EXPORT_C void DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL( |
|
107 RFile& aFile, |
|
108 ContentAccess::TIntent aIntent, |
|
109 TInt aError, |
|
110 DRM::MDrmHandleErrorObserver* aObserver ) |
|
111 { |
|
112 iImplementation->HandleErrorL( aFile, aIntent, aError, aObserver ); |
|
113 } |
|
114 |
|
115 // --------------------------------------------------------------------------- |
|
116 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL |
|
117 // CData based asynchronous method |
|
118 // --------------------------------------------------------------------------- |
|
119 // |
|
120 EXPORT_C TInt DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL( |
|
121 ContentAccess::CData& aFile, |
|
122 ContentAccess::TIntent aIntent, |
|
123 TInt aError, |
|
124 DRM::MDrmHandleErrorObserver& aObserver ) |
|
125 { |
|
126 return iImplementation->HandleErrorAsyncL( aFile, |
|
127 aIntent, |
|
128 aError, |
|
129 aObserver); |
|
130 } |
|
131 |
|
132 // --------------------------------------------------------------------------- |
|
133 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL |
|
134 // CData based method |
|
135 // --------------------------------------------------------------------------- |
|
136 // |
|
137 EXPORT_C void DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL( |
|
138 ContentAccess::CData& aData, |
|
139 ContentAccess::TIntent aIntent, |
|
140 TInt aError, |
|
141 DRM::MDrmHandleErrorObserver* aObserver ) |
|
142 { |
|
143 iImplementation->HandleErrorL( aData, aIntent, aError, aObserver ); |
|
144 } |
|
145 // End of File |
|
146 |