CCalenAttachmentInfo Class Reference

class CCalenAttachmentInfo : public CBase

Attachment information

Inherits from

  • CCalenAttachmentInfo

Constructor & Destructor Documentation

CCalenAttachmentInfo(CCalenAttachmentModel &, const TFileName &, const TFileName &, TInt, TBool, const TDataType &, const TCalenAttachmentStoreType)

CCalenAttachmentInfo(CCalenAttachmentModel &aAttachmentModel,
const TFileName &aFileName,
const TFileName &aSystemFileName,
TIntaSize,
TBoolaFetched,
const TDataType &aDataType,
const TCalenAttachmentStoreTypeaStoreType
)[private]

Default Constructor.

Parameters

CCalenAttachmentModel & aAttachmentModelreference to the CCalenAttachmentModel
const TFileName & aFileNamefilename of the attachment
const TFileName & aSystemFileName
TInt aSizesize of the attachment
TBool aFetchedattachment fetched or not
const TDataType & aDataTypemime type of the attachment
const TCalenAttachmentStoreType aStoreTypestoretype of the attachment info

~CCalenAttachmentInfo()

~CCalenAttachmentInfo()

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

2nd phase constructor.

DataType()

IMPORT_C const TDataType &DataType()const

Returns the datatype (MIME type) of this attachment.

DoUpdateIconL()

voidDoUpdateIconL()

Performs icon updating.

FileHandle(RFile &)

voidFileHandle(RFile &aFile)

Gets the file handle.

Parameters

RFile & aFile

FileName()

IMPORT_C const TFileName &FileName()const

Returns reference to the filename this attachment represents.

Icon()

IMPORT_C CGulIcon *Icon()const

Get icon of this attachment.

IsFetched()

IMPORT_C TBoolIsFetched()const

Returns ETrue if this attachment is fetched.

IsFileHandleSet()

TBool IsFileHandleSet()

Check whether the file handle is set or not.

NewL(CCalenAttachmentModel &, const TFileName &, const TFileName &, TInt, TBool, const TDataType &, const TCalenAttachmentStoreType)

IMPORT_C CCalenAttachmentInfo *NewL(CCalenAttachmentModel &aAttachmentModel,
const TFileName &aFileName,
const TFileName &aSystemFileName,
TIntaSize,
TBoolFetched,
const TDataType &aDataType,
const TCalenAttachmentStoreTypeaStoreType
)[static]

First phase construction

Parameters

CCalenAttachmentModel & aAttachmentModelreference to the CCalenAttachmentModel
const TFileName & aFileNamefilename of the attachment
const TFileName & aSystemFileName
TInt aSizesize of the attachment
TBool Fetched
const TDataType & aDataTypemime type of the attachment
const TCalenAttachmentStoreType aStoreTypestoretype of the attachment info

SetFetched(TBool)

IMPORT_C voidSetFetched(TBoolaFetched)

Sets the fetched attribute of this attachment.

Parameters

TBool aFetched

SetFileHandle(RFile &)

voidSetFileHandle(RFile &aFile)

Sets the file handle.

Parameters

RFile & aFileFile handle to be set

SetFileName(const TFileName &)

IMPORT_C voidSetFileName(const TFileName &aFileName)

Set the filename of this attachment.

Parameters

const TFileName & aFileNamefilename of the attachment

Size()

IMPORT_C TIntSize()const

Returns the size of the attachment.

SizeString()

IMPORT_C HBufC *SizeString()const

Returns the size of the atatchment in the form of a string to be displayed on the UI

StoreType()

IMPORT_C TCalenAttachmentStoreTypeStoreType()const

Get the store type whether attachment is fetched from the entry or attachment is new one

SystemFileName()

IMPORT_C const TFileName &SystemFileName()const

Returns reference to the systemfilename this attachment represents.

Member Enumerations Documentation

Enum TCalenAttachmentStoreType

Enumerators

ECalenNewAttachment
ECalenAttachmentFetchedFromEntry

Member Data Documentation

CCalenAttachmentModel & iAttachmentModel

CCalenAttachmentModel &iAttachmentModel[private]

TCalenAttachmentStoreType iAttachmentStoreType

TCalenAttachmentStoreType iAttachmentStoreType[private]

TDataType iDataType

TDataType iDataType[private]

RFile iFile

RFile iFile[private]

TFileName iFileName

TFileName iFileName[private]

CGulIcon * iIcon

CGulIcon *iIcon[private]

TBool iIsFetched

TBool iIsFetched[private]

TInt iSize

TInt iSize[private]

TFileName iSystemFileName

TFileName iSystemFileName[private]

TBool isSetFileHandle

TBool isSetFileHandle[private]