81 */ |
81 */ |
82 ~CGlxDRMUtility(); |
82 ~CGlxDRMUtility(); |
83 |
83 |
84 /** |
84 /** |
85 * Check whether DRM rights are valid for specified item |
85 * Check whether DRM rights are valid for specified item |
86 * |
86 * is called before right is consumed and for all items (focused or unfocused). |
|
87 * |
87 * @param aUri URI of the media item. |
88 * @param aUri URI of the media item. |
88 * @param aCheckViewRights, check view rights if true, play if false |
89 * @param aCheckViewRights, check view rights if true, play if false |
89 * @return ETrue if valid rights exist for the media item. |
90 * @return ETrue if valid rights exist for the media item. |
90 */ |
91 */ |
91 IMPORT_C TBool CheckOpenRightsL(const TDesC& aUri, TBool aCheckViewRights); |
92 IMPORT_C TBool ItemRightsValidityCheckL(const TDesC& aUri, TBool aCheckViewRights); |
92 |
93 |
93 /** |
94 /** |
94 * Check whether DRM rights are valid for specified item |
95 * Check whether DRM rights are valid for specified item |
95 * If the rights were just consumed, then allow to display |
96 * If the rights were just consumed, then allow to display |
96 * Otherwise, obtain current rights |
97 * Otherwise, obtain current rights |
97 * |
98 * is called after right is consumed and for only focused/displayed item. |
|
99 * |
98 * @param aUri URI of the media item. |
100 * @param aUri URI of the media item. |
99 * @param aCheckViewRights, check view rights if true, play if false |
101 * @param aCheckViewRights, check view rights if true, play if false |
100 * @return ETrue if valid rights exist for the media item. |
102 * @return ETrue if valid rights exist for the media item. |
101 */ |
103 */ |
102 IMPORT_C TBool CheckDisplayRightsL(const TDesC& aUri, TBool aCheckViewRights); |
104 IMPORT_C TBool DisplayItemRightsCheckL(const TDesC& aUri, TBool aCheckViewRights); |
103 |
105 |
104 /** |
106 /** |
105 * Consume rights for specified item |
107 * Consume rights for specified item |
106 * Caches item so that a client has right to display the item |
108 * Caches item so that a client has right to display the item |
107 * |
109 * |
109 * @return ETrue to no error in rights consumption |
111 * @return ETrue to no error in rights consumption |
110 */ |
112 */ |
111 IMPORT_C TBool ConsumeRightsL(const TDesC& aUri); |
113 IMPORT_C TBool ConsumeRightsL(const TDesC& aUri); |
112 |
114 |
113 /** |
115 /** |
114 * Fix for ESLM-82WJ59: |
|
115 * Clears Last Consumed Uri |
116 * Clears Last Consumed Uri |
116 */ |
117 */ |
117 IMPORT_C void ClearLastConsumedItemUri(); |
118 IMPORT_C void ClearLastConsumedItemUriL(); |
118 |
119 |
119 /** |
120 /** |
120 * Test whether a media item is OMA DRM 2.0 protected and has an associated |
121 * Test whether a media item is OMA DRM 2.0 protected and has an associated |
121 * info URL. |
122 * info URL. |
122 * @param aUri URI of the media item. |
123 * @param aUri URI of the media item. |
123 * @return ETrue if it does. |
124 * @return ETrue if it does. |
124 */ |
125 */ |
125 IMPORT_C TBool CanShowInfoOnlineL(TDesC& aUri); |
126 IMPORT_C TBool CanShowInfoOnlineL(const TDesC& aUri); |
126 |
127 |
127 /** |
128 /** |
128 * Open the associated info URL for a media item in the browser. |
129 * Open the associated info URL for a media item in the browser. |
129 * @param aUri URI of the media item. |
130 * @param aUri URI of the media item. |
130 */ |
131 */ |
131 IMPORT_C void ShowInfoOnlineL(TDesC& aUri); |
132 IMPORT_C void ShowInfoOnlineL(const TDesC& aUri); |
132 |
133 |
133 /** |
134 /** |
134 * Test whether a media item can be set as automated content. * |
135 * Test whether a media item can be set as automated content. * |
135 * @param aUri URI of the media item. |
136 * @param aUri URI of the media item. |
136 * @param aType Automated content type, eg. wallpaper. |
137 * @param aType Automated content type, eg. wallpaper. |