CAgnAttachment Class Reference

class CAgnAttachment : public CAgnContent

Base class for internal representation of an attachment object.

The following data is inherited from CAgnContent: TDesC8* iContent; TDesC8* iMimeType; CCalContent::TDisposition iType;

Inherits from

Public Member Functions
~CAgnAttachment()
IMPORT_C voidClearAttribute(TUint16)
IMPORT_C voidClearFlag(TUint16)
TBool CompareL(const CAgnAttachment &)
voidCopyL(const CAgnAttachment &)
voidExternalizeL(RWriteStream &)
IMPORT_C TBoolFlagsSet(TUint16)
voidInternalizeL(RReadStream &)
IMPORT_C TBoolIsAttributeSet(TUint16)
IMPORT_C const TDesC &Label()
IMPORT_C voidSetAttribute(TUint16)
IMPORT_C voidSetFlag(TUint16)
IMPORT_C voidSetLabelL(const TDesC &)
IMPORT_C voidSetMimeTypeL(const TDesC8 &)
IMPORT_C voidSetSize(TInt)
IMPORT_C voidSetUid(TCalAttachmentUid)
IMPORT_C voidSetValue(TDesC8 *)
IMPORT_C TIntSize()
IMPORT_C TCalAttachmentUidUid()
Protected Member Functions
CAgnAttachment(CCalContent::TDisposition)
Inherited Functions
CAgnContent::CAgnContent()
CAgnContent::CAgnContent(CCalContent::TDisposition)
CAgnContent::CloneL()const
CAgnContent::Content()const
CAgnContent::MimeType()const
CAgnContent::SetContent(TDesC8 *)
CAgnContent::SetContentL(TDesC8 *,TDesC8 *,CCalContent::TDisposition)
CAgnContent::SetMimeType(TDesC8 *)
CAgnContent::Type()const
CAgnContent::~CAgnContent()
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
enumanonymous { EOwnedByCalAttachment = 0x01, EDataHasBeenSet = 0x02 }
Private Attributes
TUint16 iAttributes
TUint16 iFlags
HBufC *iLabel
TInt iSize
TCalAttachmentUid iUid

Constructor & Destructor Documentation

CAgnAttachment(CCalContent::TDisposition)

CAgnAttachment(CCalContent::TDispositionaType)[protected]

Parameters

CCalContent::TDisposition aType

~CAgnAttachment()

~CAgnAttachment()[virtual]

Member Functions Documentation

ClearAttribute(TUint16)

IMPORT_C voidClearAttribute(TUint16aAttribute)

Parameters

TUint16 aAttribute

ClearFlag(TUint16)

IMPORT_C voidClearFlag(TUint16aFlag)

Parameters

TUint16 aFlag

CompareL(const CAgnAttachment &)

TBool CompareL(const CAgnAttachment &aSource)const [virtual]

Parameters

const CAgnAttachment & aSource

CopyL(const CAgnAttachment &)

voidCopyL(const CAgnAttachment &aSource)[virtual]

Parameters

const CAgnAttachment & aSource

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const [virtual]

Parameters

RWriteStream & aStream

FlagsSet(TUint16)

IMPORT_C TBoolFlagsSet(TUint16aFlag)const

Parameters

TUint16 aFlag

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[virtual]

Parameters

RReadStream & aStream

IsAttributeSet(TUint16)

IMPORT_C TBoolIsAttributeSet(TUint16aAttribute)const

Parameters

TUint16 aAttribute

Label()

IMPORT_C const TDesC &Label()const

SetAttribute(TUint16)

IMPORT_C voidSetAttribute(TUint16aAttribute)

Attributes are defined by CCalAttachment::TAttributes

Parameters

TUint16 aAttribute

SetFlag(TUint16)

IMPORT_C voidSetFlag(TUint16aFlag)

Set / get the attachment flags. Unlike the attributes, these flags are internal and not exposed to the client.

Parameters

TUint16 aFlag

SetLabelL(const TDesC &)

IMPORT_C voidSetLabelL(const TDesC &aName)

Set / get the attachment label.

Parameters

const TDesC & aName

SetMimeTypeL(const TDesC8 &)

IMPORT_C voidSetMimeTypeL(const TDesC8 &aMimeType)

Parameters

const TDesC8 & aMimeType

SetSize(TInt)

IMPORT_C voidSetSize(TIntaSize)

Parameters

TInt aSize

SetUid(TCalAttachmentUid)

IMPORT_C voidSetUid(TCalAttachmentUidaUid)

Parameters

TCalAttachmentUid aUid

SetValue(TDesC8 *)

IMPORT_C voidSetValue(TDesC8 *aValue)

Set the value of the attachment. For a CCalContent::EDispositionUrl attachment, this is the URI. For a CCalContent::EDispositionInline attachment, this is the binary data.

Parameters

TDesC8 * aValue

Size()

IMPORT_C TIntSize()const

Set / get the attachment size. For file attachments, this effectively caches it for the client.

Uid()

IMPORT_C TCalAttachmentUidUid()const

Set / get the attachment UID. This UID is internal and used to uniquely identify an attachment in a file (using the attachment index).

Member Enumerations Documentation

Enum anonymous

Enumerators

EOwnedByCalAttachment = 0x01

If this is true then the CAgnAttachment is owned by a CCalAttachment

EDataHasBeenSet = 0x02

EDataHasBeenSet is used to flag attachments created by content ID. This is set to true once the data has been set (binary data or file handle). If the data is not set then the attachment cannot be stored.

Member Data Documentation

TUint16 iAttributes

TUint16 iAttributes[private]

TUint16 iFlags

TUint16 iFlags[private]

HBufC * iLabel

HBufC *iLabel[private]

TInt iSize

TInt iSize[private]

TCalAttachmentUid iUid

TCalAttachmentUid iUid[private]