filesystemuis/memscaneng/serversrc/mseng.cpp
branchRCL_3
changeset 19 5181328fad28
parent 0 6a9f87576119
child 23 18e505e3f370
equal deleted inserted replaced
15:649c558486f0 19:5181328fad28
    22 
    22 
    23 
    23 
    24 // SYSTEM INCLUDES
    24 // SYSTEM INCLUDES
    25 #include    <mseng.rsg>
    25 #include    <mseng.rsg>
    26 #include    <bautils.h>
    26 #include    <bautils.h>
       
    27 #include    <driveinfo.h>
    27 
    28 
    28 // USER INCLUDES
    29 // USER INCLUDES
    29 #include    "mseng.h"
    30 #include    "mseng.h"
    30 #include    "mseng.hrh"
    31 #include    "mseng.hrh"
    31 #include    "msengscanner.h"
    32 #include    "msengscanner.h"
   561         return EFalse;
   562         return EFalse;
   562         }
   563         }
   563     return ETrue;
   564     return ETrue;
   564     }
   565     }
   565 
   566 
       
   567 // -----------------------------------------------------------------------------
       
   568 // CMseng::IsMassStorageDrive
       
   569 // -----------------------------------------------------------------------------
       
   570 //
       
   571 TBool CMseng::IsMassStorageDrive( RFs& aFs, TInt aDrv )
       
   572     {
       
   573     
       
   574     TUint drvStatus( 0 );
       
   575     TInt err( DriveInfo::GetDriveStatus( aFs, aDrv, drvStatus ) );
       
   576     if ( err != KErrNone )
       
   577         {
       
   578         return EFalse;
       
   579         }
       
   580     
       
   581     if ( ( drvStatus & DriveInfo::EDriveInternal ) &&
       
   582         ( drvStatus & DriveInfo::EDriveExternallyMountable ) )
       
   583         {
       
   584         return ETrue;
       
   585         }
       
   586     return EFalse;
       
   587     }
   566 
   588 
   567 //  End of File
   589 //  End of File