|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This file contains enumerations and constants used in the StreamAccess functionality of the Content Access Framework |
|
15 // content access framework |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @publishedPartner |
|
22 @released |
|
23 */ |
|
24 |
|
25 #ifndef STREAM_CAF_TYPES_H |
|
26 #define STREAM_CAF_TYPES_H |
|
27 |
|
28 /** |
|
29 @namespace StreamAccess |
|
30 StreamAccess namespace defines protection functionality specific for streams. |
|
31 */ |
|
32 namespace StreamAccess |
|
33 { |
|
34 /** |
|
35 The list of stream access attributes. Each of these attributes has a |
|
36 value that is either ETrue or EFalse unless otherwise specified.\n |
|
37 Remember to update any streaming DRM agents if new values are added here. |
|
38 */ |
|
39 enum TAttribute |
|
40 { |
|
41 EIsProgramProtected = 0, ///< The specific program is protected |
|
42 EIsServiceProtected = 1, ///< The whole service is protected |
|
43 ECanExport = 2, ///< The content can be exported |
|
44 EMustProtectIfRecording = 3, ///< The content must be protected if recorded. If ECanRecord is EFalse, then this attribute is undefined. |
|
45 ECanPlay = 4, ///< The content can be played |
|
46 EAgentSpecificAttributeBase = 32768 ///< Base index the agents should use when implementing new agent specific attributes |
|
47 }; |
|
48 |
|
49 |
|
50 |
|
51 /** The list of generic string attributes. Each of these attributes has a value that is returned to the client as a string. |
|
52 Remember to update any DRM agents if new values are added here. |
|
53 */ |
|
54 enum TStringAttribute |
|
55 { |
|
56 ERating = 0, ///< Rating of the protected content |
|
57 ECountry = 1, ///< Target country of the content |
|
58 ERightsIssuerURI = 2, ///< URI where the rights for this content may be acquired from |
|
59 EContentID = 3, ///< Content ID |
|
60 EAgentSpecificStringAttributeBase = 32768 ///< Base index the agents should use when implementing new string attributes |
|
61 }; |
|
62 } // Namespace StreamAccess |
|
63 |
|
64 #endif // STREAM_CAF_TYPES_H |
|
65 |