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> |
22 #include "DRMRightsClient.h" |
23 #include "DRMRightsClient.h" |
23 #include "DRMEngineClientServer.h" |
24 #include "DRMEngineClientServer.h" |
24 #include "DrmPermission.h" |
25 #include "DrmPermission.h" |
25 #include "DrmAsset.h" |
26 #include "DrmAsset.h" |
26 #include "drmlog.h" |
27 #include "drmlog.h" |
155 break; |
156 break; |
156 } |
157 } |
157 } |
158 } |
158 |
159 |
159 #ifdef __DRM_FULL |
160 #ifdef __DRM_FULL |
160 // startup code, if it starts it starts if not it will be tried again. |
161 |
161 RDRMHelper helper; |
162 TRAP( ret, FeatureManager::InitializeLibL() ); |
162 TInt ignore = helper.Connect(); // Start HelperServer |
163 |
163 helper.Close(); |
164 if ( !ret && FeatureManager::FeatureSupported( KFeatureIdFfOmadrm1FullSupport ) ) |
164 #endif |
165 { |
|
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 |
165 |
178 |
166 DRMLOG2( _L( "RDRMRightsClient::Connect(): Result: %d" ), ret ); |
179 DRMLOG2( _L( "RDRMRightsClient::Connect(): Result: %d" ), ret ); |
167 |
180 |
168 return ret; |
181 return ret; |
169 } |
182 } |