|
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: This class handles the DRM functions for the playback plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 4 % |
|
19 |
|
20 #ifndef __MPXVIDEODRMHELPER_H__ |
|
21 #define __MPXVIDEODRMHELPER_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 #include <drmutility.h> |
|
28 #include <drmutilitytypes.h> |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /* |
|
33 * CMpxVideoDrmHelper |
|
34 * |
|
35 */ |
|
36 class CMpxVideoDrmHelper : public CBase |
|
37 { |
|
38 public: |
|
39 // Constructors and destructor |
|
40 |
|
41 /* |
|
42 * Destructor. |
|
43 */ |
|
44 ~CMpxVideoDrmHelper(); |
|
45 |
|
46 /* |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 static CMpxVideoDrmHelper* NewL(); |
|
50 |
|
51 TBool IsProtected( RFile& aFile ); |
|
52 |
|
53 TInt GetDrmRightsStatus( RFile& aFile ); |
|
54 |
|
55 TBool IsTvOutAllowedL( RFile& aFile ); |
|
56 |
|
57 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
58 |
|
59 TBool IsProtected64( RFile64& aFile ); |
|
60 TInt GetDrmRightsStatus64( RFile64& aFile ); |
|
61 TBool IsTvOutAllowed64L( RFile64& aFile ); |
|
62 |
|
63 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
64 |
|
65 private: |
|
66 |
|
67 CMpxVideoDrmHelper(); |
|
68 |
|
69 void ConstructL(); |
|
70 |
|
71 private: |
|
72 |
|
73 DRM::CDrmUtility* iDrmUtility; |
|
74 }; |
|
75 |
|
76 #endif // __MPXVIDEODRMHELPER_H__ |