CCalenAttachmentInfo Class Reference

class CCalenAttachmentInfo : public CBase

Attachment information

Inherits from

Public Member Functions
~CCalenAttachmentInfo ()
IMPORT_C const TDataType & DataType ()
void DoUpdateIconL ()
void FileHandle ( RFile &)
IMPORT_C const TFileName & FileName ()
IMPORT_C CGulIcon * Icon ()
IMPORT_C TBool IsFetched ()
TBool IsFileHandleSet ()
IMPORT_C CCalenAttachmentInfo * NewL ( CCalenAttachmentModel &, const TFileName &, const TFileName &, TInt , TBool , const TDataType &, const TCalenAttachmentStoreType )
IMPORT_C void SetFetched ( TBool )
void SetFileHandle ( RFile &)
IMPORT_C void SetFileName (const TFileName &)
IMPORT_C TInt Size ()
IMPORT_C HBufC * SizeString ()
IMPORT_C TCalenAttachmentStoreType StoreType ()
IMPORT_C const TFileName & SystemFileName ()
Private Member Functions
CCalenAttachmentInfo ( CCalenAttachmentModel &, const TFileName &, const TFileName &, TInt , TBool , const TDataType &, const TCalenAttachmentStoreType )
void ConstructL ()
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()
Public Member Enumerations
enum TCalenAttachmentStoreType { ECalenNewAttachment , ECalenAttachmentFetchedFromEntry }
Private Attributes
CCalenAttachmentModel & iAttachmentModel
TCalenAttachmentStoreType iAttachmentStoreType
TDataType iDataType
RFile iFile
TFileName iFileName
CGulIcon * iIcon
TBool iIsFetched
TInt iSize
TFileName iSystemFileName
TBool isSetFileHandle

Constructor & Destructor Documentation

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

CCalenAttachmentInfo ( CCalenAttachmentModel & aAttachmentModel,
const TFileName & aFileName,
const TFileName & aSystemFileName,
TInt aSize,
TBool aFetched,
const TDataType & aDataType,
const TCalenAttachmentStoreType aStoreType
) [private]

Default Constructor.

Parameters

CCalenAttachmentModel & aAttachmentModel reference to the CCalenAttachmentModel
const TFileName & aFileName filename of the attachment
const TFileName & aSystemFileName
TInt aSize size of the attachment
TBool aFetched attachment fetched or not
const TDataType & aDataType mime type of the attachment
const TCalenAttachmentStoreType aStoreType storetype of the attachment info

~CCalenAttachmentInfo()

~CCalenAttachmentInfo ( )

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

2nd phase constructor.

DataType()

IMPORT_C const TDataType & DataType ( ) const

Returns the datatype (MIME type) of this attachment.

DoUpdateIconL()

void DoUpdateIconL ( )

Performs icon updating.

FileHandle(RFile &)

void FileHandle ( 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 TBool IsFetched ( ) 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,
TInt aSize,
TBool Fetched,
const TDataType & aDataType,
const TCalenAttachmentStoreType aStoreType
) [static]

First phase construction

Parameters

CCalenAttachmentModel & aAttachmentModel reference to the CCalenAttachmentModel
const TFileName & aFileName filename of the attachment
const TFileName & aSystemFileName
TInt aSize size of the attachment
TBool Fetched
const TDataType & aDataType mime type of the attachment
const TCalenAttachmentStoreType aStoreType storetype of the attachment info

SetFetched(TBool)

IMPORT_C void SetFetched ( TBool aFetched )

Sets the fetched attribute of this attachment.

Parameters

TBool aFetched

SetFileHandle(RFile &)

void SetFileHandle ( RFile & aFile )

Sets the file handle.

Parameters

RFile & aFile File handle to be set

SetFileName(const TFileName &)

IMPORT_C void SetFileName ( const TFileName & aFileName )

Set the filename of this attachment.

Parameters

const TFileName & aFileName filename of the attachment

Size()

IMPORT_C TInt Size ( ) 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 TCalenAttachmentStoreType StoreType ( ) 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]