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