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;
Public Member Functions | |
---|---|
~CAgnAttachment() | |
IMPORT_C void | ClearAttribute(TUint16) |
IMPORT_C void | ClearFlag(TUint16) |
TBool | CompareL(const CAgnAttachment &) |
void | CopyL(const CAgnAttachment &) |
void | ExternalizeL(RWriteStream &) |
IMPORT_C TBool | FlagsSet(TUint16) |
void | InternalizeL(RReadStream &) |
IMPORT_C TBool | IsAttributeSet(TUint16) |
IMPORT_C const TDesC & | Label() |
IMPORT_C void | SetAttribute(TUint16) |
IMPORT_C void | SetFlag(TUint16) |
IMPORT_C void | SetLabelL(const TDesC &) |
IMPORT_C void | SetMimeTypeL(const TDesC8 &) |
IMPORT_C void | SetSize(TInt) |
IMPORT_C void | SetUid(TCalAttachmentUid) |
IMPORT_C void | SetValue(TDesC8 *) |
IMPORT_C TInt | Size() |
IMPORT_C TCalAttachmentUid | Uid() |
Protected Member Functions | |
---|---|
CAgnAttachment(CCalContent::TDisposition) |
Public Member Enumerations | |
---|---|
enum | anonymous { EOwnedByCalAttachment = 0x01, EDataHasBeenSet = 0x02 } |
Private Attributes | |
---|---|
TUint16 | iAttributes |
TUint16 | iFlags |
HBufC * | iLabel |
TInt | iSize |
TCalAttachmentUid | iUid |
CAgnAttachment | ( | CCalContent::TDisposition | aType | ) | [protected] |
CCalContent::TDisposition aType |
TBool | CompareL | ( | const CAgnAttachment & | aSource | ) | const [virtual] |
const CAgnAttachment & aSource |
void | CopyL | ( | const CAgnAttachment & | aSource | ) | [virtual] |
const CAgnAttachment & aSource |
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
RWriteStream & aStream |
void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
RReadStream & aStream |
IMPORT_C TBool | IsAttributeSet | ( | TUint16 | aAttribute | ) | const |
TUint16 aAttribute |
IMPORT_C void | SetAttribute | ( | TUint16 | aAttribute | ) |
Attributes are defined by CCalAttachment::TAttributes
TUint16 aAttribute |
IMPORT_C void | SetFlag | ( | TUint16 | aFlag | ) |
Set / get the attachment flags. Unlike the attributes, these flags are internal and not exposed to the client.
TUint16 aFlag |
IMPORT_C void | SetLabelL | ( | const TDesC & | aName | ) |
Set / get the attachment label.
const TDesC & aName |
IMPORT_C void | SetMimeTypeL | ( | const TDesC8 & | aMimeType | ) |
const TDesC8 & aMimeType |
IMPORT_C void | SetUid | ( | TCalAttachmentUid | aUid | ) |
TCalAttachmentUid aUid |
IMPORT_C void | SetValue | ( | 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.
TDesC8 * aValue |
IMPORT_C TInt | Size | ( | ) | const |
Set / get the attachment size. For file attachments, this effectively caches it for the client.
IMPORT_C TCalAttachmentUid | Uid | ( | ) | const |
Set / get the attachment UID. This UID is internal and used to uniquely identify an attachment in a file (using the attachment index).
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. |