equal
deleted
inserted
replaced
17 |
17 |
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include <s32file.h> |
20 #include <s32file.h> |
21 #include <etelmm.h> |
21 #include <etelmm.h> |
22 #include <featmgr.h> |
|
23 #include "DRMRightsClient.h" |
22 #include "DRMRightsClient.h" |
24 #include "DRMEngineClientServer.h" |
23 #include "DRMEngineClientServer.h" |
25 #include "DrmPermission.h" |
24 #include "DrmPermission.h" |
26 #include "DrmAsset.h" |
25 #include "DrmAsset.h" |
27 #include "drmlog.h" |
26 #include "drmlog.h" |
156 break; |
155 break; |
157 } |
156 } |
158 } |
157 } |
159 |
158 |
160 #ifdef __DRM_FULL |
159 #ifdef __DRM_FULL |
161 |
160 // startup code, if it starts it starts if not it will be tried again. |
162 TRAP( ret, FeatureManager::InitializeLibL() ); |
161 RDRMHelper helper; |
163 |
162 TInt ignore = helper.Connect(); // Start HelperServer |
164 if ( !ret && FeatureManager::FeatureSupported( KFeatureIdFfOmadrm1FullSupport ) ) |
163 helper.Close(); |
165 { |
164 #endif |
166 // startup code, if it starts it starts if not it will be tried again. |
|
167 RDRMHelper helper; |
|
168 TInt ignore = helper.Connect(); // Start HelperServer |
|
169 helper.Close(); |
|
170 } |
|
171 |
|
172 if ( !ret ) |
|
173 { |
|
174 FeatureManager::UnInitializeLib(); |
|
175 } |
|
176 |
|
177 #endif |
|
178 |
165 |
179 DRMLOG2( _L( "RDRMRightsClient::Connect(): Result: %d" ), ret ); |
166 DRMLOG2( _L( "RDRMRightsClient::Connect(): Result: %d" ), ret ); |
180 |
167 |
181 return ret; |
168 return ret; |
182 } |
169 } |
852 while (offset < size) |
839 while (offset < size) |
853 { |
840 { |
854 Mem::Copy( &roSize, ptr.Ptr()+offset, sizeof(TInt) ); |
841 Mem::Copy( &roSize, ptr.Ptr()+offset, sizeof(TInt) ); |
855 offset += sizeof (TInt); |
842 offset += sizeof (TInt); |
856 ro = ptr.Mid(offset, roSize).AllocL(); |
843 ro = ptr.Mid(offset, roSize).AllocL(); |
857 aRoList.Append(ro); |
844 CleanupStack::PushL( ro ); |
|
845 aRoList.AppendL (ro); |
|
846 CleanupStack::Pop( ro ); |
858 offset += roSize; |
847 offset += roSize; |
859 } |
848 } |
860 CleanupStack::PopAndDestroy(); |
849 CleanupStack::PopAndDestroy(); |
861 } |
850 } |
862 }; |
851 }; |