CEComCachedDriveInfo Class Reference

class CEComCachedDriveInfo : public CBase

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

Inherits from

  • CEComCachedDriveInfo

Constructor & Destructor Documentation

CEComCachedDriveInfo()

CEComCachedDriveInfo()[private]

Constructor of CEComCachedDriveInfo. Nothing to do.

Member Functions Documentation

ConstructL(RFs &, TUint32)

voidConstructL(RFs &aFs,
TUint32aDiscoveryDisabledMask
)[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 & aFsreference to a connected RFs session.
TUint32 aDiscoveryDisabledMaskbits 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 TIntaDrive)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 aDrivethe drive number

DriveIsRemovableL(const TInt)

TBool DriveIsRemovableL(const TIntaDrive)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 aDrivethe drive number

DriveIsWritableL(const TInt)

TBool DriveIsWritableL(const TIntaDrive)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 aDrivethe 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