contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp
changeset 119 50e220be30d1
parent 107 b34d53f6acdf
child 125 26079c1bb561
equal deleted inserted replaced
116:305818acdca4 119:50e220be30d1
   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;