ContentAccess::CDirStreamable Class Reference

#include <caf/dirstreamable.h>

class ContentAccess::CDirStreamable : public CDir

Inherits from

  • ContentAccess::CDirStreamable
    Public Member Functions
    virtual ~CDirStreamable()
    IMPORT_C voidAddL(const TEntry &)
    IMPORT_C TIntCount()
    IMPORT_C voidExternalizeL(RWriteStream &)
    IMPORT_C CDirStreamable *NewL()
    IMPORT_C CDirStreamable *NewL(CDir &)
    IMPORT_C CDirStreamable *NewL(RReadStream)
    IMPORT_C TIntSort(TUint)
    IMPORT_C const TEntry &operator[](TInt)
    Inherited Attributes
    CDir::iArray
    Inherited Functions
    CBase::CBase()
    CBase::Delete(CBase *)
    CBase::Extension_(TUint,TAny *&,TAny *)
    CBase::operator new(TUint)
    CBase::operator new(TUint,TAny *)
    CBase::operator new(TUint,TLeave)
    CBase::operator new(TUint,TLeave,TUint)
    CBase::operator new(TUint,TUint)
    CBase::~CBase()
    CDir::CDir()
    CDir::Compress()
    CDir::ExtractL(TBool,CDir *&)
    CDir::~CDir()

    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

    Parameters
    aEntryThe directory entry to add

    Count ( )

    IMPORT_C TIntCount()const

    Reimplemented from CDir::Count()const

    The number of file system entries in the CDirStreamable

    Return Value
    The number of TEntry objects in the CDirStreamable

    ExternalizeL ( RWriteStream & )

    IMPORT_C voidExternalizeL(RWriteStream &aStream)const

    Write this CDirStreamable to a stream

    Parameters
    aStreamThe stream to write to

    NewL ( )

    IMPORT_C CDirStreamable *NewL()[static]

    Reimplemented from CDir::NewL()

    Constuct an empty CDirStreamable

    Return Value
    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()

    Parameters
    aDirA CDir object which has been constructed by a previous call to RFs::GetDir()
    Return Value
    A new CDirStreamable object

    NewL ( RReadStream )

    IMPORT_C CDirStreamable *NewL(RReadStreamaStream)[static]

    Construct a CDirStreamable object from a stream

    Parameters
    aStreamThe stream to read the CDirStreamable object from
    Return Value
    A new CDirStreamable object

    Sort ( TUint )

    IMPORT_C TIntSort(TUintaEntrySortKey)

    Reimplemented from CDir::Sort(TUint)

    Sort the entries in the specified order

    Parameters
    aEntrySortKeyA TEntryKey value used to sort the array.
    Return Value
    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

    Parameters
    aIndexThe entry to retrieve
    Return Value
    A reference to the TEntry stored by the CDirStreamable