ContentAccess::CDirStreamable Class Reference

#include <caf/dirstreamable.h>

class ContentAccess::CDirStreamable : public CDir

Inherits from

  • ContentAccess::CDirStreamable

    Detailed Description

    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

    Constructor & Destructor Documentation

    ~CDirStreamable ( )

    ~CDirStreamable()[virtual]

    Member Function Documentation

    AddL ( const TEntry & )

    IMPORT_C voidAddL(const TEntry &aEntry)

    Reimplemented from CDir::AddL(const TEntry &)

    Add an entry

    ParameterDescription
    aEntryThe directory entry to add

    Count ( )

    IMPORT_C TIntCount()const

    Reimplemented from CDir::Count()const

    The number of file system entries in the CDirStreamable

    Returns: The number of TEntry objects in the CDirStreamable

    ExternalizeL ( RWriteStream & )

    IMPORT_C voidExternalizeL(RWriteStream &aStream)const

    Write this CDirStreamable to a stream

    ParameterDescription
    aStreamThe stream to write to

    NewL ( )

    IMPORT_C CDirStreamable *NewL()[static]

    Reimplemented from CDir::NewL()

    Constuct an empty CDirStreamable

    Returns: a CDirStreamable with no entries

    NewL ( CDir & )

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

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

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

    Returns: A new CDirStreamable object

    NewL ( RReadStream )

    IMPORT_C CDirStreamable *NewL(RReadStreamaStream)[static]

    Construct a CDirStreamable object from a stream

    ParameterDescription
    aStreamThe stream to read the CDirStreamable object from

    Returns: A new CDirStreamable object

    Sort ( TUint )

    IMPORT_C TIntSort(TUintaEntrySortKey)

    Reimplemented from CDir::Sort(TUint)

    Sort the entries in the specified order

    ParameterDescription
    aEntrySortKeyA TEntryKey value used to sort the array.

    Returns: KErrNone if sort was successful

    operator[] ( TInt )

    IMPORT_C const TEntry &operator[](TIntaIndex)const

    Reimplemented from CDir::operator[](TInt)const

    Retrieve the file system entry at a particular index

    See also: TEntry

    ParameterDescription
    aIndexThe entry to retrieve

    Returns: A reference to the TEntry stored by the CDirStreamable