mmappcomponents/mmmtpdataprovider/tsrc/mtpdataprovidertestmodule/src/cteststoragemgr.cpp
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
   430     }
   430     }
   431 
   431 
   432  void CTestStorageMgr::GetAvailableDrivesL(
   432  void CTestStorageMgr::GetAvailableDrivesL(
   433          RArray<TDriveNumber>& aDrives ) const
   433          RArray<TDriveNumber>& aDrives ) const
   434     {
   434     {
   435     CleanupClosePushL( aDrives ); 
       
   436     PRINTF0( ">CTestStorageMgr::GetAvailableDrivesL" );
   435     PRINTF0( ">CTestStorageMgr::GetAvailableDrivesL" );
   437     aDrives.Reset();
   436     aDrives.Reset();
   438     for ( TUint i = 0; ( i < iMapDriveToStorage.Count() ); i++ )
   437     for ( TUint i = 0; ( i < iMapDriveToStorage.Count() ); i++ )
   439         {
   438         {
   440         if ( iMapDriveToStorage[i] != KErrNotFound )
   439         if ( iMapDriveToStorage[i] != KErrNotFound )
   442             PRINTV1( "Appending drive %d", i );
   441             PRINTV1( "Appending drive %d", i );
   443             aDrives.AppendL( static_cast<TDriveNumber>( i ) );
   442             aDrives.AppendL( static_cast<TDriveNumber>( i ) );
   444             }
   443             }
   445         }
   444         }
   446     PRINTF0( "<CTestStorageMgr::GetAvailableDrivesL" );
   445     PRINTF0( "<CTestStorageMgr::GetAvailableDrivesL" );
   447     CleanupStack::Pop(); 
       
   448     }
   446     }
   449 
   447 
   450 void CTestStorageMgr::GetLogicalStoragesL(
   448 void CTestStorageMgr::GetLogicalStoragesL(
   451         const TMTPStorageMgrQueryParams& aParams,
   449         const TMTPStorageMgrQueryParams& aParams,
   452         RPointerArray<const CMTPStorageMetaData>& aStorages ) const
   450         RPointerArray<const CMTPStorageMetaData>& aStorages ) const