equal
deleted
inserted
replaced
232 return ret; |
232 return ret; |
233 } |
233 } |
234 |
234 |
235 |
235 |
236 // ----------------------------------------------------------------------------- |
236 // ----------------------------------------------------------------------------- |
|
237 // CMFProtectionHandler::IsFlieDRMExpired |
|
238 // |
|
239 // Check if the DRM protect file is expired or have no rights. |
|
240 // ----------------------------------------------------------------------------- |
|
241 // |
|
242 TBool CMFProtectionHandler::IsFlieDRMExpired( const TDesC& aFileName ) |
|
243 { |
|
244 // Check whether the file can be set as automated content or not |
|
245 TBool canSetAutomated = EFalse; |
|
246 TInt canSetAutomatedErr = iDRMHelper->CanSetAutomated( aFileName, canSetAutomated ); |
|
247 |
|
248 // Check if rights expried or no rights to use |
|
249 if ( canSetAutomatedErr == DRMCommon::ERightsExpired || |
|
250 canSetAutomatedErr == DRMCommon::ENoRights ) |
|
251 { |
|
252 return ETrue; |
|
253 } |
|
254 return EFalse; |
|
255 } |
|
256 |
|
257 |
|
258 // ----------------------------------------------------------------------------- |
237 // CMFProtectionHandler::IsFileValidL |
259 // CMFProtectionHandler::IsFileValidL |
238 // |
260 // |
239 // Function is copy from CFLDDRMImplementation.cpp. |
261 // Function is copy from CFLDDRMImplementation.cpp. |
240 // ----------------------------------------------------------------------------- |
262 // ----------------------------------------------------------------------------- |
241 // |
263 // |