author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:32:09 +0300 | |
branch | RCL_3 |
changeset 75 | 01504893d9cb |
parent 64 | 34937ec34dac |
permissions | -rw-r--r-- |
60 | 1 |
/* |
2 |
* Copyright (c) 2008-2009 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: DRM utility implementation |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
// INCLUDES |
|
20 |
||
21 |
#include "glxdrmutility.h" |
|
22 |
||
23 |
#include <glxpanic.h> |
|
24 |
||
25 |
#include <DRMHelper.h> |
|
26 |
#include <DRMCommon.h> |
|
27 |
||
28 |
#include <caf/caf.h> |
|
29 |
#include <caf/content.h> |
|
30 |
#include <caf/data.h> |
|
31 |
#include <caf/manager.h> |
|
32 |
#include "glxtracer.h" |
|
33 |
#include "glxlog.h" |
|
34 |
||
35 |
const TInt KGlxDRMThumbnailHeight = 120; |
|
36 |
const TInt KGlxDRMThumbnailWidth = 90; |
|
37 |
||
38 |
// ======== MEMBER FUNCTIONS ======== |
|
39 |
||
40 |
/** |
|
41 |
* CGlxDrmTls |
|
42 |
* |
|
43 |
* Global object stored in TLS. |
|
44 |
* Owns the only instance of a CGlxDRMUtility |
|
45 |
*/ |
|
46 |
struct CGlxDrmTls |
|
47 |
{ |
|
48 |
CGlxDrmTls(CGlxDRMUtility* aUtility) |
|
49 |
{ |
|
50 |
iDrmUtility = aUtility; |
|
51 |
iRefCount = 0; |
|
52 |
} |
|
53 |
||
54 |
CGlxDRMUtility* iDrmUtility; |
|
55 |
TInt iRefCount; |
|
56 |
}; |
|
57 |
||
58 |
//============================================================================ |
|
59 |
// InstanceL |
|
60 |
//============================================================================ |
|
61 |
EXPORT_C CGlxDRMUtility* CGlxDRMUtility::InstanceL() |
|
62 |
{ |
|
63 |
TRACER("CGlxDRMUtility::InstanceL()"); |
|
64 |
CGlxDrmTls* tls = reinterpret_cast<CGlxDrmTls*> (Dll::Tls()); |
|
65 |
||
66 |
if (!tls) |
|
67 |
{ |
|
68 |
CGlxDRMUtility* drmutil = new (ELeave) CGlxDRMUtility(); |
|
69 |
CleanupStack::PushL(drmutil); |
|
70 |
drmutil->ConstructL(); |
|
71 |
||
72 |
tls = new (ELeave) CGlxDrmTls(drmutil); |
|
73 |
||
74 |
CleanupStack::Pop(drmutil); |
|
75 |
||
76 |
Dll::SetTls(reinterpret_cast<TAny*> (tls)); |
|
77 |
} |
|
78 |
||
79 |
tls->iRefCount++; |
|
80 |
||
81 |
return tls->iDrmUtility; |
|
82 |
} |
|
83 |
||
84 |
//============================================================================ |
|
85 |
// Close |
|
86 |
//============================================================================ |
|
87 |
EXPORT_C void CGlxDRMUtility::Close() |
|
88 |
{ |
|
89 |
TRACER("CGlxDRMUtility::Close()"); |
|
90 |
CGlxDrmTls* tls = reinterpret_cast<CGlxDrmTls*> (Dll::Tls()); |
|
91 |
||
92 |
if (tls) |
|
93 |
{ |
|
94 |
tls->iRefCount--; |
|
95 |
||
96 |
// Delete the tls pointer and list manager instance if this was the |
|
97 |
// last reference |
|
98 |
if (tls->iRefCount == 0) |
|
99 |
{ |
|
100 |
delete tls->iDrmUtility; |
|
101 |
delete tls; |
|
102 |
Dll::SetTls(NULL); |
|
103 |
} |
|
104 |
} |
|
105 |
} |
|
106 |
||
107 |
//============================================================================ |
|
108 |
// Destructor |
|
109 |
//============================================================================ |
|
110 |
CGlxDRMUtility::~CGlxDRMUtility() |
|
111 |
{ |
|
112 |
TRACER("CGlxDRMUtility::~CGlxDRMUtility()"); |
|
113 |
delete iCManager; |
|
114 |
delete iDrmHelper; |
|
115 |
delete iLastConsumedItemUri; |
|
116 |
} |
|
117 |
||
118 |
//============================================================================ |
|
119 |
// ItemRightsValidityCheckL |
|
120 |
// for checking DRM rights validity for item. |
|
121 |
// is called before right is consumed and for all items (focused or unfocused). |
|
122 |
//============================================================================ |
|
123 |
EXPORT_C TBool CGlxDRMUtility::ItemRightsValidityCheckL(const TDesC& aUri, |
|
124 |
TBool aCheckViewRights) |
|
125 |
{ |
|
126 |
TRACER("CGlxDRMUtility::ItemRightsValidityCheckL(URI)"); |
|
127 |
#ifdef _DEBUG |
|
128 |
TTime startTime; |
|
129 |
startTime.HomeTime(); |
|
130 |
#endif |
|
131 |
// When checking current rights for a URI |
|
132 |
//Allow to Open if rights for a URI was just consumed (i.e. same as stored URI) |
|
133 |
if (iLastConsumedItemUri->Length() > 0) |
|
134 |
{ |
|
135 |
if (aUri.CompareF(*iLastConsumedItemUri) == 0) |
|
136 |
{ |
|
137 |
return ETrue; |
|
138 |
} |
|
139 |
} |
|
140 |
||
141 |
//Else for uri of non-focused uri, just check validity rights |
|
142 |
TBool rightsValid = EFalse; |
|
143 |
TVirtualPathPtr path(aUri, KDefaultContentObject()); |
|
144 |
||
145 |
ContentAccess::TAttribute attr = |
|
146 |
aCheckViewRights ? ContentAccess::ECanView : ContentAccess::ECanPlay; |
|
147 |
||
148 |
// rightsValid is not updated if an error occurs |
|
149 |
iCManager->GetAttribute(attr, rightsValid, path); |
|
150 |
#ifdef _DEBUG |
|
151 |
TTime stopTime; |
|
152 |
stopTime.HomeTime(); |
|
153 |
GLX_DEBUG2("CGlxDRMUtility::ItemRightsValidityCheckL(URI) took <%d> us", |
|
154 |
(TInt) stopTime.MicroSecondsFrom(startTime).Int64()); |
|
155 |
#endif |
|
156 |
return rightsValid; |
|
157 |
} |
|
158 |
||
159 |
//============================================================================ |
|
160 |
// ItemRightsValidityCheckL |
|
161 |
// for checking DRM rights validity for item. |
|
162 |
// is called before right is consumed and for all items (focused or unfocused). |
|
163 |
//============================================================================ |
|
164 |
EXPORT_C TBool CGlxDRMUtility::ItemRightsValidityCheckL(RFile& aFileHandle, |
|
165 |
TBool aCheckViewRights) |
|
166 |
{ |
|
167 |
TRACER("CGlxDRMUtility::ItemRightsValidityCheckL(RFile)"); |
|
168 |
#ifdef _DEBUG |
|
169 |
TTime startTime; |
|
170 |
startTime.HomeTime(); |
|
75
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
171 |
#endif |
60 | 172 |
TBool rightsValid = EFalse; |
173 |
ContentAccess::TAttribute attrib = |
|
174 |
aCheckViewRights ? ContentAccess::ECanView : ContentAccess::ECanPlay; |
|
175 |
||
176 |
ContentAccess::CContent* content = ContentAccess::CContent::NewLC( |
|
177 |
aFileHandle); |
|
178 |
TInt err(content->GetAttribute(attrib, rightsValid)); |
|
179 |
CleanupStack::PopAndDestroy(content); |
|
180 |
#ifdef _DEBUG |
|
181 |
TTime stopTime; |
|
182 |
stopTime.HomeTime(); |
|
183 |
GLX_DEBUG2("CGlxDRMUtility::ItemRightsValidityCheckL(RFile) took <%d> us", |
|
184 |
(TInt) stopTime.MicroSecondsFrom(startTime).Int64()); |
|
185 |
#endif |
|
186 |
return rightsValid; |
|
187 |
} |
|
188 |
||
189 |
//============================================================================ |
|
190 |
// DisplayItemRightsCheckL |
|
191 |
// is called after right is consumed and for only focused/displayed item. |
|
192 |
//============================================================================ |
|
193 |
EXPORT_C TBool CGlxDRMUtility::DisplayItemRightsCheckL(const TDesC& aUri, |
|
194 |
TBool aCheckViewRights) |
|
195 |
{ |
|
196 |
TRACER("CGlxDRMUtility::DisplayItemRightsCheckL(URI)"); |
|
197 |
||
198 |
// Allow to display if rights for a URI was just consumed (i.e. same as stored URI) |
|
199 |
if (iLastConsumedItemUri->Length() > 0) |
|
200 |
{ |
|
201 |
if (aUri.CompareF(*iLastConsumedItemUri) == 0) |
|
202 |
{ |
|
203 |
return ETrue; |
|
204 |
} |
|
205 |
} |
|
206 |
||
207 |
//Clear the stored uri since focus has changed |
|
208 |
ClearLastConsumedItemUriL(); |
|
209 |
||
210 |
// Otherwise, check current rights for the URI of newly focused item |
|
211 |
return ItemRightsValidityCheckL(aUri, aCheckViewRights); |
|
212 |
} |
|
213 |
||
214 |
//============================================================================ |
|
215 |
// DisplayItemRightsCheckL |
|
216 |
// is called after right is consumed and for only focused/displayed item. |
|
217 |
//============================================================================ |
|
218 |
EXPORT_C TBool CGlxDRMUtility::DisplayItemRightsCheckL(RFile& aFileHandle, |
|
219 |
TBool aCheckViewRights) |
|
220 |
{ |
|
221 |
TRACER("CGlxDRMUtility::DisplayItemRightsCheckL(RFile)"); |
|
222 |
// Otherwise, check current rights for the URI of newly focused item |
|
223 |
return ItemRightsValidityCheckL(aFileHandle, aCheckViewRights); |
|
224 |
} |
|
225 |
||
226 |
//============================================================================ |
|
227 |
// ConsumeRightsL |
|
228 |
//============================================================================ |
|
229 |
EXPORT_C TBool CGlxDRMUtility::ConsumeRightsL(const TDesC& aUri) |
|
230 |
{ |
|
231 |
TRACER("CGlxDRMUtility::ConsumeRightsL(URI)"); |
|
232 |
TVirtualPathPtr path(aUri, KDefaultContentObject()); |
|
233 |
||
234 |
// Create a CData object to read the content |
|
235 |
// Tell the agent we are planning to display the content |
|
236 |
CData* data = CData::NewLC(path, ContentAccess::EView, |
|
237 |
EContentShareReadOnly); |
|
238 |
||
239 |
//When consuming rights for a URI, clear stored URI |
|
240 |
ClearLastConsumedItemUriL(); |
|
241 |
||
242 |
// Execute the intent, tell the agent that we plan to display the content |
|
243 |
// It is at this point that any stateful rights will be decremented |
|
244 |
TInt err = data->ExecuteIntent(ContentAccess::EView); |
|
245 |
if (err == KErrNone) |
|
246 |
{ |
|
247 |
//Update stored URI |
|
248 |
iLastConsumedItemUri = iLastConsumedItemUri->ReAllocL(aUri.Length()); |
|
249 |
TPtr newPtr = iLastConsumedItemUri->Des(); |
|
250 |
newPtr.Copy(aUri); |
|
251 |
} |
|
252 |
||
253 |
CleanupStack::PopAndDestroy(data); |
|
254 |
||
255 |
return (err == KErrNone); |
|
256 |
} |
|
257 |
||
258 |
//============================================================================ |
|
259 |
// ConsumeRightsL |
|
260 |
//============================================================================ |
|
261 |
EXPORT_C TBool CGlxDRMUtility::ConsumeRightsL(RFile& aFileHandle) |
|
262 |
{ |
|
263 |
TRACER("CGlxDRMUtility::ConsumeRightsL(RFile)"); |
|
264 |
CData* data = CData::NewLC(aFileHandle, KDefaultContentObject(), EPeek); |
|
265 |
TInt err = data->ExecuteIntent(ContentAccess::EView); |
|
266 |
CleanupStack::PopAndDestroy(data); |
|
267 |
return (err == KErrNone); |
|
268 |
} |
|
269 |
||
270 |
//============================================================================ |
|
271 |
//Clears Last Consumed Uri |
|
272 |
//============================================================================ |
|
273 |
EXPORT_C void CGlxDRMUtility::ClearLastConsumedItemUriL() |
|
274 |
{ |
|
275 |
TRACER("CGlxDRMUtility::ClearLastConsumedItemUriL()"); |
|
276 |
//clears the stored uri |
|
277 |
TPtr ptr = iLastConsumedItemUri->Des(); |
|
278 |
ptr.Zero(); |
|
279 |
iLastConsumedItemUri = iLastConsumedItemUri->ReAllocL(0); |
|
280 |
} |
|
281 |
||
282 |
//============================================================================ |
|
283 |
// Test whether a media item is OMA DRM 2.0 protected and has an associated |
|
284 |
// info URL. |
|
285 |
//============================================================================ |
|
286 |
EXPORT_C TBool CGlxDRMUtility::CanShowInfoOnlineL(const TDesC& aUri) |
|
287 |
{ |
|
288 |
TRACER("CGlxDRMUtility::CanShowInfoOnlineL()"); |
|
289 |
TBool canShowInfoOnline = EFalse; |
|
290 |
||
291 |
HBufC8* urlBuf = NULL; |
|
292 |
canShowInfoOnline = iDrmHelper->HasInfoUrlL(const_cast<TDesC&> (aUri), |
|
293 |
urlBuf); |
|
294 |
||
295 |
// discard buf we don't need it |
|
296 |
delete urlBuf; |
|
297 |
||
298 |
return canShowInfoOnline; |
|
299 |
} |
|
300 |
||
301 |
//============================================================================ |
|
302 |
// Open the associated info URL for a media item in the browser. |
|
303 |
//============================================================================ |
|
304 |
EXPORT_C void CGlxDRMUtility::ShowInfoOnlineL(const TDesC& aUri) |
|
305 |
{ |
|
306 |
TRACER("CGlxDRMUtility::ShowInfoOnlineL()"); |
|
307 |
iDrmHelper->OpenInfoUrlL(const_cast<TDesC&> (aUri)); |
|
308 |
} |
|
309 |
||
310 |
//============================================================================ |
|
311 |
// Test whether a media item can be set as automated content. |
|
312 |
//============================================================================ |
|
313 |
EXPORT_C TBool CGlxDRMUtility::CanSetAsAutomatedL(const TDesC& aUri, |
|
314 |
TGlxDrmAutomatedType aType) |
|
315 |
{ |
|
316 |
TRACER("CGlxDRMUtility::CanSetAsAutomatedL()"); |
|
317 |
TBool canSetAutomated = EFalse; |
|
318 |
switch (aType) |
|
319 |
{ |
|
320 |
case EGlxDrmAutomatedTypeWallpaper: |
|
321 |
{ |
|
322 |
User::LeaveIfError(iDrmHelper->SetAutomatedType( |
|
323 |
CDRMHelper::EAutomatedTypeWallpaper)); |
|
324 |
User::LeaveIfError(iDrmHelper->CanSetAutomated(aUri, |
|
325 |
canSetAutomated)); |
|
326 |
break; |
|
327 |
} |
|
328 |
default: |
|
329 |
break; |
|
330 |
}; |
|
331 |
return canSetAutomated; |
|
332 |
} |
|
333 |
||
334 |
//============================================================================ |
|
335 |
// SetAsAutomatedL |
|
336 |
//============================================================================ |
|
337 |
EXPORT_C void CGlxDRMUtility::SetAsAutomatedL(const TDesC& aUri, |
|
338 |
TGlxDrmAutomatedType aType) |
|
339 |
{ |
|
340 |
TRACER("CGlxDRMUtility::SetAsAutomatedL()"); |
|
341 |
switch (aType) |
|
342 |
{ |
|
343 |
case EGlxDrmAutomatedTypeWallpaper: |
|
344 |
{ |
|
345 |
TInt error = iDrmHelper->SetAutomatedType( |
|
346 |
CDRMHelper::EAutomatedTypeWallpaper); |
|
347 |
if (KErrNone == error) |
|
348 |
{ |
|
349 |
error = iDrmHelper->SetAutomatedPassive(aUri); |
|
350 |
if (KErrNone != error) |
|
351 |
{ |
|
352 |
iDrmHelper->HandleErrorL(error, aUri); |
|
353 |
} |
|
354 |
} |
|
355 |
||
356 |
break; |
|
357 |
} |
|
358 |
default: |
|
359 |
break; |
|
360 |
}; |
|
361 |
} |
|
362 |
||
363 |
//============================================================================ |
|
364 |
// ShowDRMDetailsPane |
|
365 |
//============================================================================ |
|
366 |
EXPORT_C void CGlxDRMUtility::ShowDRMDetailsPaneL(const TDesC& aUri) |
|
367 |
{ |
|
368 |
TRACER("CGlxDRMUtility::ShowDRMDetailsPaneL(URI)"); |
|
75
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
369 |
TRAPD( err, iDrmHelper->LaunchDetailsViewEmbeddedL( aUri ) ); |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
370 |
// if no rights ask user to re-activate |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
371 |
if (err == KErrCANoRights) |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
372 |
{ |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
373 |
HBufC* buf = aUri.AllocLC(); |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
374 |
iDrmHelper->ActivateContentL(*buf); |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
375 |
CleanupStack::PopAndDestroy(buf); |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
376 |
} |
60 | 377 |
|
378 |
} |
|
379 |
||
380 |
//============================================================================ |
|
381 |
// ShowDRMDetailsPane |
|
382 |
//============================================================================ |
|
383 |
EXPORT_C void CGlxDRMUtility::ShowDRMDetailsPaneL(RFile& aFileHandle) |
|
384 |
{ |
|
385 |
TRACER("CGlxDRMUtility::ShowDRMDetailsPaneL(RFile)"); |
|
75
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
386 |
TRAPD( err, iDrmHelper->LaunchDetailsViewEmbeddedL( aFileHandle ) ); |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
387 |
// if no rights ask user to re-activate |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
388 |
if (err == KErrCANoRights) |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
389 |
{ |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
390 |
//need to check if we need to handle. |
01504893d9cb
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
391 |
} |
60 | 392 |
} |
393 |
||
394 |
//============================================================================ |
|
395 |
// IsForwardLockedL |
|
396 |
//============================================================================ |
|
397 |
EXPORT_C TBool CGlxDRMUtility::IsForwardLockedL(const TDesC& aUri) |
|
398 |
{ |
|
399 |
TRACER("CGlxDRMUtility::IsForwardLockedL()"); |
|
400 |
TBool forwardLocked = EFalse; |
|
401 |
TVirtualPathPtr path(aUri, KDefaultContentObject()); |
|
402 |
||
403 |
// forwardLocked is not updated if an error occurs |
|
404 |
iCManager->GetAttribute(ContentAccess::EIsForwardable, forwardLocked, |
|
405 |
path); |
|
406 |
||
407 |
return forwardLocked; |
|
408 |
} |
|
409 |
||
410 |
//============================================================================ |
|
411 |
// ShowRightsInfoL |
|
412 |
//============================================================================ |
|
413 |
EXPORT_C void CGlxDRMUtility::ShowRightsInfoL(const TDesC& aUri) |
|
414 |
{ |
|
415 |
TRACER("CGlxDRMUtility::ShowRightsInfoL(URI)"); |
|
416 |
iDrmHelper->CheckRightsAmountL(aUri); |
|
417 |
} |
|
418 |
||
419 |
//============================================================================ |
|
420 |
// ShowRightsInfoL |
|
421 |
//============================================================================ |
|
422 |
EXPORT_C void CGlxDRMUtility::ShowRightsInfoL(RFile& aFileHandle) |
|
423 |
{ |
|
424 |
TRACER("CGlxDRMUtility::ShowRightsInfoL(RFile)"); |
|
425 |
iDrmHelper->CheckRightsAmountL(aFileHandle); |
|
426 |
} |
|
427 |
||
428 |
//============================================================================ |
|
429 |
// Return size for DRM thumbnail request. |
|
430 |
//============================================================================ |
|
431 |
EXPORT_C TSize CGlxDRMUtility::DRMThumbnailSize(TSize& aSize) |
|
432 |
{ |
|
433 |
TRACER("CGlxDRMUtility::DRMThumbnailSize()"); |
|
434 |
TSize thumbnailSize(KGlxDRMThumbnailWidth, KGlxDRMThumbnailHeight); |
|
435 |
||
436 |
if ((aSize.iWidth * aSize.iHeight) / 4 < KGlxDRMThumbnailWidth |
|
437 |
* KGlxDRMThumbnailHeight) |
|
438 |
{ |
|
439 |
thumbnailSize.iWidth = aSize.iWidth / 2; |
|
440 |
thumbnailSize.iHeight = aSize.iHeight / 2; |
|
441 |
} |
|
442 |
||
443 |
return thumbnailSize; |
|
444 |
} |
|
445 |
||
446 |
/** |
|
447 |
* C++ default constructor. |
|
448 |
*/ |
|
449 |
CGlxDRMUtility::CGlxDRMUtility() |
|
450 |
{ |
|
451 |
TRACER("CGlxDRMUtility::CGlxDRMUtility()"); |
|
452 |
} |
|
453 |
||
454 |
/** |
|
455 |
* By default Symbian 2nd phase constructor is private. |
|
456 |
*/ |
|
457 |
void CGlxDRMUtility::ConstructL() |
|
458 |
{ |
|
459 |
TRACER("CGlxDRMUtility::ConstructL()"); |
|
460 |
iCManager = ContentAccess::CManager::NewL(); |
|
461 |
iDrmHelper = CDRMHelper::NewL(); |
|
462 |
iLastConsumedItemUri = HBufC::NewL(0); |
|
463 |
} |
|
464 |
||
465 |
// End of File |