conn::CSBEFileEntry Class Reference

class conn::CSBEFileEntry : public CBase

This class is a more memory efficient heap based externalisable version of TEntry containing just the information required for public backup. TEntry contains a TFileName which is a modifiable descriptor of 512 bytes and therefore takes up needless memory. CSBEFileEntry on the other hand occupies only as much RAM as is required to represent the name and path of the file that it represents.

This class is a more memory efficient heap based externalisable version of TEntry containing just the information required for public backup. TEntry contains a TFileName which is a modifiable descriptor of 512 bytes and therefore takes up needless memory. CSBEFileEntry on the other hand occupies only as much RAM as is required to represent the name and path of the file that it represents.

Inherits from

Constructor & Destructor Documentation

CSBEFileEntry(const TEntry &)

CSBEFileEntry(const TEntry &aEntry)[private]

C++ ctor that copies out the parts of aEntry that don't require heap allocation

Parameters

const TEntry & aEntryThe entry to copy most of the settings from

~CSBEFileEntry()

IMPORT_C~CSBEFileEntry()

C++ dtor

Member Functions Documentation

CalculatePackedSize()

TUint16 CalculatePackedSize()const [private]

calculate the size of this object when externalised

ConstructL(const TEntry &, RApaLsSession &)

voidConstructL(const TEntry &aEntry,
RApaLsSession &aSession
)[private]

Symbian 2nd phase constructor used when instantiating an instance from component parts rather than from a previously externalised stream

Parameters

const TEntry & aEntryInformation about the file that this object will represent
RApaLsSession & aSessionRequired to map from TEntry's UID MIME type into a textual representation

FileAttributes()

IMPORT_C TUintFileAttributes()const

Accessor function returning the packed bitmask representing the attributes of the file that this object represents in the format defined by TEntry TEntry::iAtt

FileSize()

IMPORT_C TIntFileSize()const

Accessor function returning the size in bytes of the file represented by this object TEntry::iSize

InternaliseL(const TDesC8 &, TInt &)

voidInternaliseL(const TDesC8 &aStream,
TInt &aBytesRead
)[private]

Symbian 2nd phase constructor used when instantiating an instance from a previously externalised stream of bytes. aStream must begin at the beginning of the internalised form of this object and upon return, aBytesRead will contain the number of bytes read from that stream which allows multiple objects to be packed into a stream and read sequentially

Parameters

const TDesC8 & aStreamThe stream containing at least one instance of CSBEFileEntry
TInt & aBytesReadUpon return, this will contain the number of bytes read from aStream in order to internalise this single instance of CSBEFileEntry

LastModified()

IMPORT_C TTimeLastModified()const

Accessor function returning the time that the file represented by this object# was last modified TEntry::iModified

MIMEType()

IMPORT_C TDesC16 &MIMEType()const

Accessor function returning a textual representation of the MIME type of the file represented by this object.

MIMEUid()

IMPORT_C TUidType &MIMEUid()

Accessor function returning the UID of the MIME type of the file represented by this object. TEntry::iType

NewLC(const TEntry &, RApaLsSession &)

IMPORT_C CSBEFileEntry *NewLC(const TEntry &aEntry,
RApaLsSession &aSession
)[static]

Constructor for creating a CSBEFileEntry from an existing TEntry (as returned from RFs' directory listing mechanisms)

Parameters

const TEntry & aEntryInformation about the file that this object will represent
RApaLsSession & aSessionRequired to map from TEntry's UID MIME type into a textual representation

Member Data Documentation

TUint iAtt

TUint iAtt[private]

The individual bits within this byte indicate which attributes have been set.

KEntryAttNormal KEntryAttReadOnly KEntryAttHidden KEntryAttSystem

HBufC * iFilename

HBufC *iFilename[private]

Path and name of the file

TTime iModified

TTime iModified[private]

The system time of last modification, in universal time.

TInt iSize

TInt iSize[private]

The size of the file in bytes.

HBufC * iType

HBufC *iType[private]

The textual version of the file's UIDtype

TUidType iUidType

TUidType iUidType[private]

Array of UID Types corresponding to this file