|
1 /* |
|
2 * Copyright (c) 2006-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: Data class for async operations in DrmRightInfoImpl -class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CDRMRIGHTSINFODATA_H |
|
20 #define CDRMRIGHTSINFODATA_H |
|
21 |
|
22 //*** system include files go here: |
|
23 #include <e32base.h> |
|
24 #include <caf/caftypes.h> |
|
25 #include <drmutilitytypes.h> |
|
26 |
|
27 namespace DRM |
|
28 { |
|
29 |
|
30 //*** Forward declaration |
|
31 class MDrmAsyncObserver; |
|
32 |
|
33 /** |
|
34 * DRM Rights Info Data storage class |
|
35 * |
|
36 * @lib drmrightsinfoimpl.lib |
|
37 * @since S60 v5.0 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CDrmRightsInfoData ) : public CBase |
|
40 { |
|
41 |
|
42 public: // Members |
|
43 |
|
44 /** |
|
45 * Creates a new CDrmRightsInfoData -object |
|
46 * |
|
47 * @since S60 5.0 |
|
48 * @return A functional CDrmRightsInfoData -object |
|
49 * @leave System wide or DRM specific error code |
|
50 */ |
|
51 static CDrmRightsInfoData* NewL(); |
|
52 |
|
53 |
|
54 /** |
|
55 * Creates a new CDrmRightsInfoData -object and leaves |
|
56 * it into the cleanup stack |
|
57 * |
|
58 * @since S60 5.0 |
|
59 * @return A functional CDrmRightsInfoData -object |
|
60 * @leave System wide or DRM specific error code |
|
61 */ |
|
62 static CDrmRightsInfoData* NewLC(); |
|
63 |
|
64 /** |
|
65 * Destructor. |
|
66 */ |
|
67 ~CDrmRightsInfoData(); |
|
68 |
|
69 public: // Variables: |
|
70 // Operation request status |
|
71 MDrmAsyncObserver* iObserver; |
|
72 |
|
73 // Operation id |
|
74 TInt iOperationId; |
|
75 |
|
76 // Operation code |
|
77 TInt iOperation; |
|
78 |
|
79 // The content id requested as 16 bit descriptor |
|
80 HBufC16* iUniqueId; |
|
81 |
|
82 // The content id requested as 8 bit descriptor, this exists if it's |
|
83 // required by the operation |
|
84 HBufC8* iUniqueId8; |
|
85 |
|
86 // Intent |
|
87 ContentAccess::TIntent iIntent; |
|
88 |
|
89 // Details |
|
90 TDrmRightsInfo* iDetails; |
|
91 |
|
92 // Queue Pointer: |
|
93 CDrmRightsInfoData* iNext; |
|
94 |
|
95 private: |
|
96 |
|
97 /** |
|
98 * C++ default constructor. |
|
99 */ |
|
100 CDrmRightsInfoData(); |
|
101 |
|
102 /** |
|
103 * 2nd phase constructor |
|
104 */ |
|
105 void ConstructL(); |
|
106 |
|
107 }; |
|
108 } |
|
109 |
|
110 |
|
111 #endif // CDRMRIGHTSINFODATA_H |