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 void AddL ( const TEntry & aEntry )

Add an entry

Parameters

const TEntry & aEntry The directory entry to add

ConstructL()

void ConstructL ( ) [private]

ConstructL(CDir &)

void ConstructL ( CDir & aDir ) [private]

Parameters

CDir & aDir

Count()

IMPORT_C TInt Count ( ) const

The number of file system entries in the CDirStreamable

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Write this CDirStreamable to a stream

Parameters

RWriteStream & aStream The stream to write to

InternalizeL(RReadStream &)

void InternalizeL ( 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 & aDir A CDir object which has been constructed by a previous call to RFs::GetDir()

NewL(RReadStream)

IMPORT_C CDirStreamable * NewL ( RReadStream aStream ) [static]

Construct a CDirStreamable object from a stream

Parameters

RReadStream aStream The stream to read the CDirStreamable object from

Sort(TUint)

IMPORT_C TInt Sort ( TUint aEntrySortKey )

Sort the entries in the specified order

Parameters

TUint aEntrySortKey A TEntryKey value used to sort the array.

operator[](TInt)

IMPORT_C const TEntry & operator[] ( TInt aIndex ) const

Retrieve the file system entry at a particular index

TEntry

Parameters

TInt aIndex The entry to retrieve