mds_plat/harvester_framework_api/tsrc/HarvesterClientTest/src/HarvesterClientTestScripterBlocks.cpp
branchRCL_3
changeset 13 4a4892eec172
parent 12 9f21bab39f42
equal deleted inserted replaced
12:9f21bab39f42 13:4a4892eec172
   550     
   550     
   551     TPtrC inputFile;
   551     TPtrC inputFile;
   552     User::LeaveIfError( aItem.GetNextString( inputFile ));
   552     User::LeaveIfError( aItem.GetNextString( inputFile ));
   553 
   553 
   554     TUint32 mediaId( 0 );
   554     TUint32 mediaId( 0 );
   555 //    TInt blackListError( KErrNone );
       
   556     TTime modified ( 0 );
   555     TTime modified ( 0 );
   557 /*    
   556 
   558     blackListError = iMediaIdUtil->GetMediaId( inputFile, mediaId );
       
   559     if( blackListError != KErrNone )
       
   560         {
       
   561         return blackListError;
       
   562         }
       
   563     
       
   564     blackListError = iFs.Modified( inputFile, modified );
       
   565     if( blackListError != KErrNone )
       
   566         {
       
   567         return blackListError;
       
   568         }
       
   569 */    
       
   570     TRAPD( err, iBlacklistClient.AddL( inputFile, mediaId, modified ) );
   557     TRAPD( err, iBlacklistClient.AddL( inputFile, mediaId, modified ) );
   571     if( err != KErrNone )
   558     if( err != KErrNone )
   572         {
   559         {
   573         return err;
   560         return err;
   574         }
   561         }
   588     {
   575     {
   589     _LIT( KMsg1, "Enter CheckBlacklistL" );
   576     _LIT( KMsg1, "Enter CheckBlacklistL" );
   590     iLog->Log( KMsg1 );
   577     iLog->Log( KMsg1 );
   591     RDebug::Print( KMsg1 );
   578     RDebug::Print( KMsg1 );
   592 
   579 
   593 //    iBlacklistClient.LoadBlacklistL();
       
   594     
       
   595     TPtrC inputFile;
   580     TPtrC inputFile;
   596     User::LeaveIfError( aItem.GetNextString( inputFile ));
   581     User::LeaveIfError( aItem.GetNextString( inputFile ));
   597     
   582     
   598     TUint32 mediaId( 0 );
   583     TUint32 mediaId( 0 );
   599 //    TInt blackListError( KErrNone );
       
   600     TTime modified ( 0 );
   584     TTime modified ( 0 );
   601 /*    
   585 
   602     blackListError = iMediaIdUtil->GetMediaId( inputFile, mediaId );
       
   603     if( blackListError != KErrNone )
       
   604         {
       
   605         return blackListError;
       
   606         }
       
   607   
       
   608     blackListError = iFs.Modified( inputFile, modified );
       
   609     if( blackListError != KErrNone )
       
   610         {
       
   611         return blackListError;
       
   612         }
       
   613 */    
       
   614     TBool isBlacklisted( EFalse );
   586     TBool isBlacklisted( EFalse );
   615     TRAP_IGNORE( isBlacklisted = iBlacklistClient.IsBlacklistedL( inputFile, mediaId, modified ) );
   587     TRAP_IGNORE( isBlacklisted = iBlacklistClient.IsBlacklistedL( inputFile, mediaId, modified ) );
   616     if( !isBlacklisted )
   588     if( !isBlacklisted )
   617         {
   589         {
   618         return KErrNotFound;
   590         return KErrNotFound;
   637     
   609     
   638     TPtrC inputFile;
   610     TPtrC inputFile;
   639     User::LeaveIfError( aItem.GetNextString( inputFile ));
   611     User::LeaveIfError( aItem.GetNextString( inputFile ));
   640     
   612     
   641     TUint32 mediaId( 0 );
   613     TUint32 mediaId( 0 );
   642 //    TInt blackListError( KErrNone );
       
   643     TTime modified ( 0 );
   614     TTime modified ( 0 );
   644 /*    
   615 
   645     blackListError = iMediaIdUtil->GetMediaId( inputFile, mediaId );
       
   646     if( blackListError != KErrNone )
       
   647         {
       
   648         return blackListError;
       
   649         }
       
   650 */    
       
   651     TRAPD( err, iBlacklistClient.RemoveL( inputFile, mediaId ) );
   616     TRAPD( err, iBlacklistClient.RemoveL( inputFile, mediaId ) );
   652     if( err != KErrNone )
   617     if( err != KErrNone )
   653         {
   618         {
   654         return err;
   619         return err;
   655         }
   620         }