profilesservices/MediaFileList/Src/mediafileprotection.cpp
branchRCL_3
changeset 67 940cad2b4a51
parent 54 7e0eff37aedb
equal deleted inserted replaced
60:2cc01806dc06 67:940cad2b4a51
   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 // -----------------------------------------------------------------------------
       
   259 // CMFProtectionHandler::IsFileValidL
   237 // CMFProtectionHandler::IsFileValidL
   260 // 
   238 // 
   261 // Function is copy from CFLDDRMImplementation.cpp.
   239 // Function is copy from CFLDDRMImplementation.cpp.
   262 // -----------------------------------------------------------------------------
   240 // -----------------------------------------------------------------------------
   263 //
   241 //