|
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: Contains the WM DRM CAF Agent specific data types, commands |
|
15 * and attributes |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef WMDRMAGENT_H |
|
22 #define WMDRMAGENT_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <caf/caftypes.h> |
|
26 |
|
27 // CONSTANTS |
|
28 _LIT(KWmDrmAgentName, "WM DRM Agent"); |
|
29 |
|
30 _LIT8(KWmTriggerContentType, "application/asf.wmdrm.roap-trigger+xml"); |
|
31 _LIT8(KWmfImportContentType, "application/x-asf.drm.import"); |
|
32 _LIT8(KWmfContentType, "application/vnd.drm.asf"); |
|
33 _LIT8(KWmaContentType, "audio/x-ms-wma"); |
|
34 _LIT8(KWmvContentType, "video/x-ms-wmv"); |
|
35 _LIT8(KAsfFileType, "application/vnd.ms-asf" ); |
|
36 |
|
37 _LIT(KWmDrmWmaExtension, ".wma"); |
|
38 _LIT(KWmDrmWmvExtension, ".wmv"); |
|
39 _LIT(KWmDrmAsfExtension, ".asf"); |
|
40 |
|
41 |
|
42 // DATA TYPES |
|
43 |
|
44 namespace ContentAccess |
|
45 { |
|
46 // Agent specific attribute identifiers |
|
47 |
|
48 enum TWmDrmAgentStringAttribute |
|
49 { |
|
50 ERating = EAgentSpecificAttributeBase + 1, |
|
51 EPicture, |
|
52 EText, |
|
53 EComposer, |
|
54 EYear, |
|
55 EOriginalArtist, |
|
56 EWmTrackNumber, |
|
57 EUniqueFileID, |
|
58 EAudioFileUrl, |
|
59 ESharedUserRating, |
|
60 EDate |
|
61 }; |
|
62 |
|
63 // File types |
|
64 |
|
65 enum |
|
66 { |
|
67 EAsf = 3, // next in line after OMA DRM file types |
|
68 }; |
|
69 |
|
70 } |
|
71 |
|
72 namespace DRM |
|
73 { |
|
74 enum TWmDrmAgentManagerCommands |
|
75 { |
|
76 EWmDrmDeleteRights |
|
77 }; |
|
78 } |
|
79 |
|
80 #endif // WMDRMAGENT_H |
|
81 |
|
82 // End of File |