|
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: Interface for WM DRM Wrapper |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_DRMUTILITYWMDRMWRAPPER_H |
|
20 #define M_DRMUTILITYWMDRMWRAPPER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 //*** forward declarations go here: |
|
25 class CCoeEnv; |
|
26 |
|
27 namespace DRM |
|
28 { |
|
29 |
|
30 class MDrmUiCheckRightsObserver; |
|
31 class MDrmHandleErrorObserver; |
|
32 |
|
33 |
|
34 /** |
|
35 * |
|
36 * @since S60 v5.0 |
|
37 */ |
|
38 class MDrmUtilityWMDrmWrapper |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Performs the check rights amount operation for windows media files |
|
45 * |
|
46 * @param[in] aContent The content itself |
|
47 * @param[in] aIntent The intent for the rights to check |
|
48 * @param[in] aObserver Observer for callbacks, NULL if not |
|
49 * available |
|
50 * @param[in] aOperatioId The operation id of the async operation |
|
51 * @return none |
|
52 * @leave System wide error code |
|
53 */ |
|
54 virtual void CheckWmRightsAmountL( |
|
55 ContentAccess::CData& aContent, |
|
56 ContentAccess::TIntent aIntent, |
|
57 MDrmUiCheckRightsObserver* aObserver, |
|
58 TInt aOperationId ) = 0; |
|
59 |
|
60 /** |
|
61 * Performs the handle error operation for windows media files |
|
62 * |
|
63 * @param[in] aContent The content itself |
|
64 * @param[in] aIntent The intent for the rights to check |
|
65 * @param[in] aError The error code to be handled |
|
66 * @param[in] aObserver Observer for callbacks, NULL if not |
|
67 * available |
|
68 * @param[in] aOperatioId The operation id of the async operation |
|
69 * @return none |
|
70 * @leave System wide error code |
|
71 */ |
|
72 virtual void HandleWmErrorL( |
|
73 ContentAccess::CData& aContent, |
|
74 ContentAccess::TIntent aIntent, |
|
75 TInt aError, |
|
76 MDrmHandleErrorObserver* aObserver, |
|
77 TInt aOperationId ) = 0; |
|
78 |
|
79 /** |
|
80 * Method for setting the control environment |
|
81 * |
|
82 * @param[in] aCoeEnv The control environment |
|
83 * @return none |
|
84 */ |
|
85 virtual void SetCoeEnv( |
|
86 CCoeEnv* aCoeEnv ) = 0; |
|
87 |
|
88 }; |
|
89 |
|
90 } |
|
91 |
|
92 |
|
93 #endif // M_MDRMUTILITYWMDRMWRAPPER_H |