equal
deleted
inserted
replaced
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; |