contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp
changeset 124 e36b2f4799c0
parent 109 e0aa398e6810
equal deleted inserted replaced
121:0b3699f6c654 124:e36b2f4799c0
   351 //
   351 //
   352 TBool CCaWidgetStorageHandler::MassStorageNotInUse()
   352 TBool CCaWidgetStorageHandler::MassStorageNotInUse()
   353     {
   353     {
   354     TBool massStorageNotInUse( ETrue );
   354     TBool massStorageNotInUse( ETrue );
   355     TInt drive;
   355     TInt drive;
   356     if( DriveInfo::GetDefaultDrive( DriveInfo::EDefaultMassStorage, drive ) ==
   356     if( DriveInfo::GetDefaultDrive( 
   357         KErrNone )
   357             DriveInfo::EDefaultMassStorage, drive ) == KErrNone )
   358         {
   358         {
   359         TUint status;
   359         TVolumeInfo volumeInfo;
   360         if( DriveInfo::GetDriveStatus( iFs, drive, status ) == KErrNone &&
   360         if( iFs.Volume( volumeInfo, drive ) == KErrNotReady )
   361             ( status & DriveInfo::EDriveInUse ) )
       
   362             {
   361             {
   363             massStorageNotInUse = EFalse;
   362             massStorageNotInUse = EFalse;
   364             }
   363             }
   365         }
   364         }
   366     return massStorageNotInUse;
   365     return massStorageNotInUse;