TEComCachedDriveInfoIterator Class Reference

class TEComCachedDriveInfoIterator

Iterator which return only valid drives.

After instantiation, user must call either First() or Last() to set the initial position and check InRange() before calling the methods to access the drive number and attributes.

Constructor & Destructor Documentation

TEComCachedDriveInfoIterator(const CEComCachedDriveInfo &)

TEComCachedDriveInfoIterator ( const CEComCachedDriveInfo & aCachedDriveInfo )

TEComCachedDriveInfoIterator Constructor Note that the object is not yet in valid state. User must first call First() or Last() .

Parameters

const CEComCachedDriveInfo & aCachedDriveInfo

Member Functions Documentation

DriveIsReadOnlyInternal(void)

TBool DriveIsReadOnlyInternal ( void ) const
Test if the EEComDrvAttrReadOnlyInternal attribute for the current drive is set.
panic
USER:133 from TFixedArray if iterator is out of bound.

Parameters

void

DriveIsRemovable(void)

TBool DriveIsRemovable ( void ) const
Test if the EEComDrvAttrRemovable attribute for the current drive is set.
panic
USER:133 from TFixedArray if iterator is out of bound.

Parameters

void

DriveIsWritable(void)

TBool DriveIsWritable ( void ) const
Test if the EEComDrvAttrWritable attribute for the current drive is set.
panic
USER:133 from TFixedArray if iterator is out of bound.

Parameters

void

DriveNumber(void)

TDriveNumber DriveNumber ( void ) const
panic
USER:133 from TFixedArray if iterator is out of bound.

Parameters

void

DriveUnit(void)

TDriveUnit DriveUnit ( void ) const
panic
USER:133 from TFixedArray if iterator is out of bound.

Parameters

void

First(void)

void First ( void )

Position iterator at first valid drive so as to iterate the drive list in increasing drive number order.

Parameters

void

InRange(void)

TBool InRange ( void ) const

To be used in for and while loops to check if iterator has stepped through all posible drives.

Parameters

void

Last(void)

void Last ( void )

Position iterator at last valid drive so as to iterate the drive list in decreasing drive number order.

Parameters

void

Next(void)

void Next ( void )

Increment iterator to next valid drive.

Parameters

void

Prev(void)

void Prev ( void )

Decrement iterator to next valid drive.

Parameters

void

SetPos(const TInt)

TBool SetPos ( const TInt aDrive )

Check if the drive is enabled for scanning and move index there if true.

Parameters

const TInt aDrive the drive number of the drive to check.

Member Data Documentation

const TFixedArray< TEComDrvFlags, KMaxDrives > & iDriveAttr

const TFixedArray < TEComDrvFlags , KMaxDrives > & iDriveAttr [private]

TInt iIndex

TInt iIndex [private]