CEComCachedDriveInfo Class Reference

class CEComCachedDriveInfo : public CBase

class to keep track of drive attributes of interest to ECOM.

Inherits from

Constructor & Destructor Documentation

CEComCachedDriveInfo()

CEComCachedDriveInfo ( ) [private]

Constructor of CEComCachedDriveInfo . Nothing to do.

Member Functions Documentation

ConstructL(RFs &, TUint32)

void ConstructL ( RFs & aFs,
TUint32 aDiscoveryDisabledMask
) [private]

Standard two-phase construction to complete construction of CEComCachedDriveInfo .

leave
KErrNoMemory if out of memory, or any of the other system wide errors.

Parameters

RFs & aFs reference to a connected RFs session.
TUint32 aDiscoveryDisabledMask bits set indicate the drives contain no plug-ins and need not be scanned. There is a mechanism to allow licensees to specify this mask at ROM build time.

DriveIsReadOnlyInternalL(const TInt)

TBool DriveIsReadOnlyInternalL ( const TInt aDrive ) const
Is EEComDrvAttrReadOnlyInternal attribute set on the given drive?
leave
KEComErrDriveNotFound if aDrive is not supposed to be scanned, i.e. drive absent or disabled by licensees or subst or remote. Use TEComCachedDriveInfoIterator::SetPos instead if want to test drive attribute.

Parameters

const TInt aDrive the drive number

DriveIsRemovableL(const TInt)

TBool DriveIsRemovableL ( const TInt aDrive ) const
Test if the EEComDrvAttrRemovable attribute for the given drive is set.
leave
KEComErrDriveNotFound if aDrive is not supposed to be scanned, i.e. drive absent or disabled by licensees or subst or remote. Use TEComCachedDriveInfoIterator::SetPos instead if want to test drive is removable.

Parameters

const TInt aDrive the drive number

DriveIsWritableL(const TInt)

TBool DriveIsWritableL ( const TInt aDrive ) const
Test if the EEComDrvAttrWritable attribute for the given drive is set.
leave
KEComErrDriveNotFound if aDrive is not supposed to be scanned, i.e. drive absent or disabled by licensees or subst or remote. Use TEComCachedDriveInfoIterator::SetPos instead if want to test drive is removable.

Parameters

const TInt aDrive the drive number

NewL(RFs &)

CEComCachedDriveInfo * NewL ( RFs & aFs ) [static]

Standard factory method to instantiate CEComCachedDriveInfo instances.

Parameters

RFs & aFs

Member Data Documentation

TFixedArray< TEComDrvFlags, KMaxDrives > iDriveAttr

TFixedArray < TEComDrvFlags , KMaxDrives > iDriveAttr [private, static]

static member of CEComCachedDriveInfo

TBool iInitialized

TBool iInitialized [private, static]

static member of CEComCachedDriveInfo

TInt iLastIndex

TInt iLastIndex [private, static]

static member of CEComCachedDriveInfo