ContentAccess::CDirStreamable Class Reference

class ContentAccess::CDirStreamable : public CDir

Emulates the behavior of a CDir object with the addition of streaming.

Functions are not virtual and do not override the CDir functions so most of the time this class will be used as if it was a CDir. It is only when used explicitly as a CDirStreamable that any additional functionality is invoked

Inherits from

Constructor & Destructor Documentation

CDirStreamable()

CDirStreamable()[private]

~CDirStreamable()

~CDirStreamable()[virtual]

Member Functions Documentation

AddL(const TEntry &)

IMPORT_C voidAddL(const TEntry &aEntry)

Add an entry

Parameters

const TEntry & aEntryThe directory entry to add

ConstructL()

voidConstructL()[private]

ConstructL(CDir &)

voidConstructL(CDir &aDir)[private]

Parameters

CDir & aDir

Count()

IMPORT_C TIntCount()const

The number of file system entries in the CDirStreamable

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Write this CDirStreamable to a stream

Parameters

RWriteStream & aStreamThe stream to write to

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private]

Parameters

RReadStream & aStream

NewL()

IMPORT_C CDirStreamable *NewL()[static]

Constuct an empty CDirStreamable

NewL(CDir &)

IMPORT_C CDirStreamable *NewL(CDir &aDir)[static]

Construct a CDirStreamable object from the result of a call to RFs::GetDir()

Parameters

CDir & aDirA CDir object which has been constructed by a previous call to RFs::GetDir()

NewL(RReadStream)

IMPORT_C CDirStreamable *NewL(RReadStreamaStream)[static]

Construct a CDirStreamable object from a stream

Parameters

RReadStream aStreamThe stream to read the CDirStreamable object from

Sort(TUint)

IMPORT_C TIntSort(TUintaEntrySortKey)

Sort the entries in the specified order

Parameters

TUint aEntrySortKeyA TEntryKey value used to sort the array.

operator[](TInt)

IMPORT_C const TEntry &operator[](TIntaIndex)const

Retrieve the file system entry at a particular index

TEntry

Parameters

TInt aIndexThe entry to retrieve