equal
deleted
inserted
replaced
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include <caf/caftypes.h> |
21 #include <caf/caftypes.h> |
22 #include <caf/data.h> |
22 #include <caf/data.h> |
23 #include <drmautomatedusage.h> |
23 #include <drmautomatedusage.h> |
24 |
24 |
25 #include "drmautomatedusageimpl.h" |
25 #include "DrmAutomatedUsageImpl.h" |
26 #include "drmautomatedusageerrorhandling.h" |
26 #include "drmautomatedusageerrorhandling.h" |
27 |
27 |
28 // ============================ MEMBER FUNCTIONS =============================== |
28 // ============================ MEMBER FUNCTIONS =============================== |
29 |
29 |
30 // ----------------------------------------------------------------------------- |
30 // ----------------------------------------------------------------------------- |
162 const ContentAccess::TIntent aIntent, |
162 const ContentAccess::TIntent aIntent, |
163 const DRM::TDrmAutomatedType aAutomatedType, |
163 const DRM::TDrmAutomatedType aAutomatedType, |
164 const DRM::TDrmAutomatedServiceType aServiceType ) |
164 const DRM::TDrmAutomatedServiceType aServiceType ) |
165 { |
165 { |
166 iUtility->CheckFileHandleL( aFile ); |
166 iUtility->CheckFileHandleL( aFile ); |
167 iImplementation->SetAutomatedL( aFile, |
167 iImplementation->SetAutomatedL( aFile, |
168 aIntent, |
168 aIntent, |
169 aAutomatedType, |
169 aAutomatedType, |
170 aServiceType ); |
170 aServiceType ); |
171 } |
171 } |
172 |
172 |
173 // ----------------------------------------------------------------------------- |
173 // ----------------------------------------------------------------------------- |
174 // DRM::CDrmAutomatedUsage::SetAutomatedAsyncL |
174 // DRM::CDrmAutomatedUsage::SetAutomatedAsyncL |
182 const DRM::TDrmAutomatedType aAutomatedType, |
182 const DRM::TDrmAutomatedType aAutomatedType, |
183 DRM::MDrmAsyncObserver& aObserver, |
183 DRM::MDrmAsyncObserver& aObserver, |
184 const DRM::TDrmAutomatedServiceType aServiceType ) |
184 const DRM::TDrmAutomatedServiceType aServiceType ) |
185 { |
185 { |
186 iUtility->CheckFileHandleL( aFile ); |
186 iUtility->CheckFileHandleL( aFile ); |
187 return iImplementation->SetAutomatedAsyncL( aFile, |
187 return iImplementation->SetAutomatedAsyncL( aFile, |
188 aIntent, |
188 aIntent, |
189 aAutomatedType, |
189 aAutomatedType, |
190 aObserver, |
190 aObserver, |
191 aServiceType ); |
191 aServiceType ); |
192 } |
192 } |
193 |
193 |
194 // ----------------------------------------------------------------------------- |
194 // ----------------------------------------------------------------------------- |
195 // DRM::CDrmAutomatedUsage::SetAutomatedL |
195 // DRM::CDrmAutomatedUsage::SetAutomatedL |
201 const ContentAccess::CData& aData, |
201 const ContentAccess::CData& aData, |
202 const ContentAccess::TIntent aIntent, |
202 const ContentAccess::TIntent aIntent, |
203 const DRM::TDrmAutomatedType aAutomatedType, |
203 const DRM::TDrmAutomatedType aAutomatedType, |
204 const DRM::TDrmAutomatedServiceType aServiceType ) |
204 const DRM::TDrmAutomatedServiceType aServiceType ) |
205 { |
205 { |
206 iImplementation->SetAutomatedL( aData, |
206 iImplementation->SetAutomatedL( aData, |
207 aIntent, |
207 aIntent, |
208 aAutomatedType, |
208 aAutomatedType, |
209 aServiceType ); |
209 aServiceType ); |
210 } |
210 } |
211 |
211 |
212 // ----------------------------------------------------------------------------- |
212 // ----------------------------------------------------------------------------- |
220 const ContentAccess::TIntent aIntent, |
220 const ContentAccess::TIntent aIntent, |
221 const DRM::TDrmAutomatedType aAutomatedType, |
221 const DRM::TDrmAutomatedType aAutomatedType, |
222 DRM::MDrmAsyncObserver& aObserver, |
222 DRM::MDrmAsyncObserver& aObserver, |
223 const DRM::TDrmAutomatedServiceType aServiceType ) |
223 const DRM::TDrmAutomatedServiceType aServiceType ) |
224 { |
224 { |
225 return iImplementation->SetAutomatedAsyncL( aData, |
225 return iImplementation->SetAutomatedAsyncL( aData, |
226 aIntent, |
226 aIntent, |
227 aAutomatedType, |
227 aAutomatedType, |
228 aObserver, |
228 aObserver, |
229 aServiceType ); |
229 aServiceType ); |
230 } |
230 } |
231 |
231 |
232 // ----------------------------------------------------------------------------- |
232 // ----------------------------------------------------------------------------- |
233 // DRM::CDrmAutomatedUsage::RemoveAutomatedL |
233 // DRM::CDrmAutomatedUsage::RemoveAutomatedL |
240 const ContentAccess::TIntent aIntent, |
240 const ContentAccess::TIntent aIntent, |
241 const DRM::TDrmAutomatedType aAutomatedType, |
241 const DRM::TDrmAutomatedType aAutomatedType, |
242 const DRM::TDrmAutomatedServiceType aServiceType ) |
242 const DRM::TDrmAutomatedServiceType aServiceType ) |
243 { |
243 { |
244 iUtility->CheckFileHandleL( aFile ); |
244 iUtility->CheckFileHandleL( aFile ); |
245 iImplementation->RemoveAutomatedL( aFile, |
245 iImplementation->RemoveAutomatedL( aFile, |
246 aIntent, |
246 aIntent, |
247 aAutomatedType, |
247 aAutomatedType, |
248 aServiceType ); |
248 aServiceType ); |
249 } |
249 } |
250 |
250 |
251 // ----------------------------------------------------------------------------- |
251 // ----------------------------------------------------------------------------- |
252 // DRM::CDrmAutomatedUsage::RemoveAutomatedAsyncL |
252 // DRM::CDrmAutomatedUsage::RemoveAutomatedAsyncL |
260 const DRM::TDrmAutomatedType aAutomatedType, |
260 const DRM::TDrmAutomatedType aAutomatedType, |
261 DRM::MDrmAsyncObserver& aObserver, |
261 DRM::MDrmAsyncObserver& aObserver, |
262 const DRM::TDrmAutomatedServiceType aServiceType ) |
262 const DRM::TDrmAutomatedServiceType aServiceType ) |
263 { |
263 { |
264 iUtility->CheckFileHandleL( aFile ); |
264 iUtility->CheckFileHandleL( aFile ); |
265 return iImplementation->RemoveAutomatedAsyncL( aFile, |
265 return iImplementation->RemoveAutomatedAsyncL( aFile, |
266 aIntent, |
266 aIntent, |
267 aAutomatedType, |
267 aAutomatedType, |
268 aObserver, |
268 aObserver, |
269 aServiceType ); |
269 aServiceType ); |
270 } |
270 } |
271 |
271 |
272 // ----------------------------------------------------------------------------- |
272 // ----------------------------------------------------------------------------- |
273 // DRM::CDrmAutomatedUsage::RemoveAutomatedL |
273 // DRM::CDrmAutomatedUsage::RemoveAutomatedL |
279 const ContentAccess::CData& aData, |
279 const ContentAccess::CData& aData, |
280 const ContentAccess::TIntent aIntent, |
280 const ContentAccess::TIntent aIntent, |
281 const DRM::TDrmAutomatedType aAutomatedType, |
281 const DRM::TDrmAutomatedType aAutomatedType, |
282 const DRM::TDrmAutomatedServiceType aServiceType ) |
282 const DRM::TDrmAutomatedServiceType aServiceType ) |
283 { |
283 { |
284 iImplementation->RemoveAutomatedL( aData, |
284 iImplementation->RemoveAutomatedL( aData, |
285 aIntent, |
285 aIntent, |
286 aAutomatedType, |
286 aAutomatedType, |
287 aServiceType ); |
287 aServiceType ); |
288 } |
288 } |
289 |
289 |
290 // ----------------------------------------------------------------------------- |
290 // ----------------------------------------------------------------------------- |
291 // DRM::CDrmAutomatedUsage::RemoveAutomatedAsyncL |
291 // DRM::CDrmAutomatedUsage::RemoveAutomatedAsyncL |
298 const ContentAccess::TIntent aIntent, |
298 const ContentAccess::TIntent aIntent, |
299 const DRM::TDrmAutomatedType aAutomatedType, |
299 const DRM::TDrmAutomatedType aAutomatedType, |
300 DRM::MDrmAsyncObserver& aObserver, |
300 DRM::MDrmAsyncObserver& aObserver, |
301 const DRM::TDrmAutomatedServiceType aServiceType ) |
301 const DRM::TDrmAutomatedServiceType aServiceType ) |
302 { |
302 { |
303 return iImplementation->RemoveAutomatedAsyncL( aData, |
303 return iImplementation->RemoveAutomatedAsyncL( aData, |
304 aIntent, |
304 aIntent, |
305 aAutomatedType, |
305 aAutomatedType, |
306 aObserver, |
306 aObserver, |
307 aServiceType ); |
307 aServiceType ); |
308 } |
308 } |
309 |
309 |
310 // ----------------------------------------------------------------------------- |
310 // ----------------------------------------------------------------------------- |
311 // DRM::CDrmAutomatedUsage::RemoveAutomatedL |
311 // DRM::CDrmAutomatedUsage::RemoveAutomatedL |
317 const TDesC& aUniqueId, |
317 const TDesC& aUniqueId, |
318 const ContentAccess::TIntent aIntent, |
318 const ContentAccess::TIntent aIntent, |
319 const DRM::TDrmAutomatedType aAutomatedType, |
319 const DRM::TDrmAutomatedType aAutomatedType, |
320 const DRM::TDrmAutomatedServiceType aServiceType ) |
320 const DRM::TDrmAutomatedServiceType aServiceType ) |
321 { |
321 { |
322 iImplementation->RemoveAutomatedL( aUniqueId, |
322 iImplementation->RemoveAutomatedL( aUniqueId, |
323 aIntent, |
323 aIntent, |
324 aAutomatedType, |
324 aAutomatedType, |
325 aServiceType ); |
325 aServiceType ); |
326 } |
326 } |
327 |
327 |
328 // ----------------------------------------------------------------------------- |
328 // ----------------------------------------------------------------------------- |
329 // DRM::CDrmAutomatedUsage::RemoveAutomatedAsyncL |
329 // DRM::CDrmAutomatedUsage::RemoveAutomatedAsyncL |
336 const ContentAccess::TIntent aIntent, |
336 const ContentAccess::TIntent aIntent, |
337 const DRM::TDrmAutomatedType aAutomatedType, |
337 const DRM::TDrmAutomatedType aAutomatedType, |
338 DRM::MDrmAsyncObserver& aObserver, |
338 DRM::MDrmAsyncObserver& aObserver, |
339 const DRM::TDrmAutomatedServiceType aServiceType ) |
339 const DRM::TDrmAutomatedServiceType aServiceType ) |
340 { |
340 { |
341 return iImplementation->RemoveAutomatedAsyncL( aUniqueId, |
341 return iImplementation->RemoveAutomatedAsyncL( aUniqueId, |
342 aIntent, |
342 aIntent, |
343 aAutomatedType, |
343 aAutomatedType, |
344 aObserver, |
344 aObserver, |
345 aServiceType ); |
345 aServiceType ); |
346 } |
346 } |
347 |
347 |
348 // ----------------------------------------------------------------------------- |
348 // ----------------------------------------------------------------------------- |
349 // DRM::CDrmAutomatedUsage::RegisterEventObserverL |
349 // DRM::CDrmAutomatedUsage::RegisterEventObserverL |