CMsgAttachmentInfo Class Reference

class CMsgAttachmentInfo : public CBase

Attachment information node.

Inherits from

Public Member Functions
~CMsgAttachmentInfo()
IMPORT_C TMsvAttachmentIdAttachmentId()
voidChangeSizeAndIconL()
TInt CharacterSet()
IMPORT_C TIntDRMDataType()
IMPORT_C const TDataType &DataType()
IMPORT_C const TFileName &FileName()
IMPORT_C CGulIcon *Icon()
IMPORT_C TBoolIsAttachedThisSession()
TBool IsEmptyAttachment()
IMPORT_C TBoolIsFetched()
IMPORT_C TBoolIsSaved()
IMPORT_C TBoolIsSeparator()
IMPORT_C TBoolIsSupported()
CMsgAttachmentInfo *NewL(CMsgAttachmentModel &, const TFileName &, TInt, TBool, TBool, TMsvAttachmentId, const TDataType &, TDRMDataType)
IMPORT_C voidSetAttachedThisSession(TBool)
IMPORT_C voidSetAttachmentId(TMsvAttachmentId)
voidSetCharacterSet(TInt)
IMPORT_C voidSetDRMDataType(TDRMDataType)
IMPORT_C voidSetDataType(const TDataType &)
voidSetEmptyAttachment(TBool)
IMPORT_C voidSetFetched(TBool)
IMPORT_C voidSetFileName(const TFileName &)
IMPORT_C voidSetSaved(TBool)
IMPORT_C voidSetSeparator(TBool)
IMPORT_C voidSetSupported(TBool)
IMPORT_C TIntSize()
IMPORT_C TBuf< KMsgAttaSizeStringLength >SizeString()
Protected Member Functions
CMsgAttachmentInfo(CMsgAttachmentModel &, const TFileName &, TInt, TBool, TBool)
IMPORT_C voidConstructL(const TDataType &, TDRMDataType)
Private Member Functions
voidDoUpdateIconL()
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
enumTDRMDataType { ENoLimitations = 0, EForwardLockedOrCombinedDelivery, ESeparateDeliveryValidRights, ECombinedDeliveryInvalidRights, ESeparateDeliveryInvalidRights }
Private Member Enumerations
enumTAttachmentInfoFlags {
EAttachmentNoFlagsSet = 0x00000000, EAttachmentFetched = 0x00000001, EAttachedThisSession = 0x00000002, EAttachmentSupported = 0x00000004, ESeparatorBefore = 0x00000008, EAttachmentSaved = 0x00000010, EEmptyAttachment = 0x00000020
}
Private Attributes
TInt iAttachmentFlags
TMsvAttachmentId iAttachmentId
CMsgAttachmentModel &iAttachmentModel
TInt iCharset
TDRMDataType iDRMDataType
TDataType iDataType
TFileName iFileName
CGulIcon *iIcon
TInt iSize
TBuf< KMsgAttaSizeStringLength >iSizeString

Constructor & Destructor Documentation

CMsgAttachmentInfo(CMsgAttachmentModel &, const TFileName &, TInt, TBool, TBool)

IMPORT_CCMsgAttachmentInfo(CMsgAttachmentModel &aAttachmentModel,
const TFileName &aFileName,
TIntaSize,
TBoolaFetched,
TBoolaAttachedThisSession
)[protected]

Constructor.

Parameters

CMsgAttachmentModel & aAttachmentModel
const TFileName & aFileName
TInt aSize
TBool aFetched
TBool aAttachedThisSession

~CMsgAttachmentInfo()

IMPORT_C~CMsgAttachmentInfo()

Destructor.

Member Functions Documentation

AttachmentId()

IMPORT_C TMsvAttachmentIdAttachmentId()const

Returns the id of this attachment.

ChangeSizeAndIconL()

voidChangeSizeAndIconL()

Updates size and icon.

CharacterSet()

TInt CharacterSet()const [inline]

Returns character set of text attachment.

ConstructL(const TDataType &, TDRMDataType)

IMPORT_C voidConstructL(const TDataType &aDataType,
TDRMDataTypeaDRMDataType
)[protected]

2nd phase constructor.

Parameters

const TDataType & aDataType
TDRMDataType aDRMDataType

DRMDataType()

IMPORT_C TIntDRMDataType()const

Returns the DRM (digital rights management) status of this attachment.

DataType()

IMPORT_C const TDataType &DataType()const

Returns the datatype (MIME type) of this attachment.

DoUpdateIconL()

voidDoUpdateIconL()[private]

Performs icon updating.

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.

IsAttachedThisSession()

IMPORT_C TBoolIsAttachedThisSession()const

Returns ETrue if this attachment was attached in this session.

IsEmptyAttachment()

TBool IsEmptyAttachment()[inline]

Returns whether attachment is empty.

IsFetched()

IMPORT_C TBoolIsFetched()const

Returns ETrue if this attachment is fetched.

IsSaved()

IMPORT_C TBoolIsSaved()const

Returns status information whether this attachment has been saved into file system

IsSeparator()

IMPORT_C TBoolIsSeparator()const

Return separator flag.

IsSupported()

IMPORT_C TBoolIsSupported()const

Returns supported flag.

NewL(CMsgAttachmentModel &, const TFileName &, TInt, TBool, TBool, TMsvAttachmentId, const TDataType &, TDRMDataType)

CMsgAttachmentInfo *NewL(CMsgAttachmentModel &aAttachmentModel,
const TFileName &aFileName,
TIntaSize,
TBoolFetched,
TBoolaAttachedThisSession,
TMsvAttachmentIdaAttachmentId,
const TDataType &aDataType,
TDRMDataTypeaDRMDataType
)[static]

Factory method that creates this object.

Parameters

CMsgAttachmentModel & aAttachmentModel
const TFileName & aFileName
TInt aSize
TBool Fetched
TBool aAttachedThisSession
TMsvAttachmentId aAttachmentId
const TDataType & aDataType
TDRMDataType aDRMDataType

SetAttachedThisSession(TBool)

IMPORT_C voidSetAttachedThisSession(TBoolaFlag)

Sets flag which tells if this attachment is attached in this session.

Parameters

TBool aFlag

SetAttachmentId(TMsvAttachmentId)

IMPORT_C voidSetAttachmentId(TMsvAttachmentIdaId)

Sets the id of this attachment.

Parameters

TMsvAttachmentId aId

SetCharacterSet(TInt)

voidSetCharacterSet(TIntaCharConvCharSet)[inline]

Sets character set for text attachment.

Parameters

TInt aCharConvCharSet

SetDRMDataType(TDRMDataType)

IMPORT_C voidSetDRMDataType(TDRMDataTypeaDRMDataType)

Sets the DRM (digital rights management) status of this attachment.

Parameters

TDRMDataType aDRMDataType

SetDataType(const TDataType &)

IMPORT_C voidSetDataType(const TDataType &aDataType)

Sets the datatype (MIME type) of this attachment.

Parameters

const TDataType & aDataType

SetEmptyAttachment(TBool)

voidSetEmptyAttachment(TBoolaValue)[inline]

Sets attachment empty ( i.e. no content is connected to the attachment ).

Parameters

TBool aValue

SetFetched(TBool)

IMPORT_C voidSetFetched(TBoolaFetched)

Sets the fetched attribute of this attachment.

Parameters

TBool aFetched

SetFileName(const TFileName &)

IMPORT_C voidSetFileName(const TFileName &aFileName)

Set the filename of this attachment.

Parameters

const TFileName & aFileName

SetSaved(TBool)

IMPORT_C voidSetSaved(TBoolaSaved)

Saves status whether this attachment has been saved into file system

Parameters

TBool aSavedETrue attachment has been saved EFalse attachment has not been saved

SetSeparator(TBool)

IMPORT_C voidSetSeparator(TBoolaFlag)

Sets flag if separator line must be drawn before this attachment in attachment view.

Parameters

TBool aFlag

SetSupported(TBool)

IMPORT_C voidSetSupported(TBoolaFlag)

Sets supported flag.

Parameters

TBool aFlag

Size()

IMPORT_C TIntSize()const

Returns the size of this attachment.

SizeString()

IMPORT_C TBuf< KMsgAttaSizeStringLength >SizeString()const

Returns the size of this attachment as a string.

Member Enumerations Documentation

Enum TAttachmentInfoFlags

Enumerators

EAttachmentNoFlagsSet = 0x00000000
EAttachmentFetched = 0x00000001
EAttachedThisSession = 0x00000002
EAttachmentSupported = 0x00000004
ESeparatorBefore = 0x00000008
EAttachmentSaved = 0x00000010
EEmptyAttachment = 0x00000020

Enum TDRMDataType

Enumerators

ENoLimitations = 0
EForwardLockedOrCombinedDelivery
ESeparateDeliveryValidRights
ECombinedDeliveryInvalidRights
ESeparateDeliveryInvalidRights

Member Data Documentation

TInt iAttachmentFlags

TInt iAttachmentFlags[private]

TMsvAttachmentId iAttachmentId

TMsvAttachmentId iAttachmentId[private]

CMsgAttachmentModel & iAttachmentModel

CMsgAttachmentModel &iAttachmentModel[private]

TInt iCharset

TInt iCharset[private]

TDRMDataType iDRMDataType

TDRMDataType iDRMDataType[private]

TDataType iDataType

TDataType iDataType[private]

TFileName iFileName

TFileName iFileName[private]

CGulIcon * iIcon

CGulIcon *iIcon[private]

TInt iSize

TInt iSize[private]

TBuf< KMsgAttaSizeStringLength > iSizeString

TBuf< KMsgAttaSizeStringLength >iSizeString[private]