|
1 /* |
|
2 * Copyright (c) 2006 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: Definitions for DRM media type |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMPXMEDIADRMDEFS_H |
|
21 #define CMPXMEDIADRMDEFS_H |
|
22 |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <mpxattribute.h> |
|
26 |
|
27 /** |
|
28 * Content ID identifying DRM category of content provided |
|
29 * in the media object and associated attributes. |
|
30 */ |
|
31 const TInt KMPXMediaIdDrm=0x101FFC45; |
|
32 |
|
33 enum TMPXMediaDrmType |
|
34 { |
|
35 EMPXDrmTypeOMA, |
|
36 EMPXDrmTypeWMA |
|
37 }; |
|
38 |
|
39 enum TMPXMediaDrmRightsStatus |
|
40 { |
|
41 EMPXDrmRightsFull, |
|
42 EMPXDrmRightsMissing, |
|
43 EMPXDrmRightsRestricted, |
|
44 EMPXDrmRightsExpired, |
|
45 EMPXDrmRightsPreview |
|
46 }; |
|
47 |
|
48 enum TMPXMediaDrmRightsType |
|
49 { |
|
50 EMPXDrmRightsTypeNoRestriction, |
|
51 EMPXDrmRightsTypeCount, |
|
52 EMPXDrmRightsTypeTime, |
|
53 EMPXDrmRightsTypeInterval, |
|
54 EMPXDrmRightsTypeTimeCount, |
|
55 EMPXDrmRightsTypeAccTime |
|
56 }; |
|
57 |
|
58 /** |
|
59 * Attributes supported for KMPXMediaIdDrm |
|
60 */ |
|
61 const TMPXAttributeData KMPXMediaDrmType = {KMPXMediaIdDrm, 0x0001}; // TInt |
|
62 const TMPXAttributeData KMPXMediaDrmProtected = {KMPXMediaIdDrm, 0x0002}; // TBool |
|
63 const TMPXAttributeData KMPXMediaDrmRightsStatus = {KMPXMediaIdDrm, 0x0004}; // TInt |
|
64 const TMPXAttributeData KMPXMediaDrmRightsType = {KMPXMediaIdDrm, 0x0008}; // TInt |
|
65 const TMPXAttributeData KMPXMediaDrmCount = {KMPXMediaIdDrm, 0x0010}; // TInt |
|
66 const TMPXAttributeData KMPXMediaDrmStartTime = {KMPXMediaIdDrm, 0x0020}; // TInt64 |
|
67 const TMPXAttributeData KMPXMediaDrmEndTime = {KMPXMediaIdDrm, 0x0040}; // TInt64 |
|
68 const TMPXAttributeData KMPXMediaDrmInterval = {KMPXMediaIdDrm, 0x0080}; // TTimeIntervalSeconds |
|
69 const TMPXAttributeData KMPXMediaDrmIntervalStartTime = {KMPXMediaIdDrm, 0x0100}; // TInt64 |
|
70 const TMPXAttributeData KMPXMediaDrmAccumulatedTime = {KMPXMediaIdDrm, 0x0200}; // TTimeIntervalSeconds |
|
71 const TMPXAttributeData KMPXMediaDrmSendingAllowed = {KMPXMediaIdDrm, 0x0400}; // TBool |
|
72 const TMPXAttributeData KMPXMediaDrmCanSetAutomated = {KMPXMediaIdDrm, 0x0800}; // TBool |
|
73 const TMPXAttributeData KMPXMediaDrmHasInfoUrl = {KMPXMediaIdDrm, 0x1000}; // TBool |
|
74 const TMPXAttributeData KMPXMediaDrmHasPreviewUrl = {KMPXMediaIdDrm, 0x2000}; // TBool |
|
75 const TMPXAttributeData KMPXMediaDrmAboutToExpire = {KMPXMediaIdDrm, 0x4000}; // TBool |
|
76 const TMPXAttributeData KMPXMediaDrmAll = {KMPXMediaIdDrm, 0xffffffff}; |
|
77 |
|
78 /** |
|
79 * Attributes supported for KMPXMediaIdDrm. |
|
80 * |
|
81 * @deprecated Use the above consts |
|
82 */ |
|
83 enum |
|
84 { |
|
85 EMPXMediaDrmType = 0x0001, // TInt |
|
86 EMPXMediaDrmProtected = 0x0002, // TBool |
|
87 EMPXMediaDrmRightsStatus = 0x0004, // TInt |
|
88 EMPXMediaDrmRightsType = 0x0008, // TInt |
|
89 EMPXMediaDrmCount = 0x0010, // TInt |
|
90 EMPXMediaDrmStartTime = 0x0020, // TInt64 |
|
91 EMPXMediaDrmEndTime = 0x0040, // TInt64 |
|
92 EMPXMediaDrmInterval = 0x0080, // TTimeIntervalSeconds |
|
93 EMPXMediaDrmIntervalStartTime = 0x0100, // TInt64 |
|
94 EMPXMediaDrmAccumulatedTime = 0x0200, // TTimeIntervalSeconds |
|
95 EMPXMediaDrmSendingAllowed = 0x0400, // TBool |
|
96 EMPXMediaDrmCanSetAutomated = 0x0800, // TBool |
|
97 EMPXMediaDrmHasInfoUrl = 0x1000, // TBool |
|
98 EMPXMediaDrmHasPreviewUrl = 0x2000, // TBool |
|
99 EMPXMediaDrmAboutToExpire = 0x4000, // TBool |
|
100 EMPXMediaDrmAll = 0xffffffff |
|
101 }; |
|
102 |
|
103 |
|
104 #endif // CMPXMEDIADRMDEFS_H |