CCalAttachment Class Reference
class CCalAttachment : public CBase |
Class representing a calendar attachment. This allows access to the attachment content itself and associated metadata.
This can be either a URI (RFC 3986) or a file attachment, which must be specified on creation. A URI attachment requires a descriptor containing the URI. A file attachment can be specified as either a descriptor containing the binary data or as a file handle.
Attachment data (i.e. URI, binary data) cannot be changed once an attachment has been created. This does not include metadata properties that are modifiable through the CCalAttachment APIs.
File attachments may also have only a content ID on creation. This applies in cases where a vCalendar or iCalendar (RFC 2445) is imported as part of a message. The content ID refers to the attachment file located elsewhere in the message. The attachment data must be set using CCalAttachment::SetResourceL before the attachment can be stored. The content ID can be changed once it has been set. There is more information about content IDs in the MIME specification (RFC2045).
Constructor & Destructor Documentation
CCalAttachment()
CCalAttachment | ( | ) | [private] |
CCalAttachment(CAgnAttachment &)
CCalAttachment | ( | CAgnAttachment & | aAttachment | ) | [private] |
Parameters
CAgnAttachment & aAttachment | |
~CCalAttachment()
IMPORT_C | ~CCalAttachment | ( | ) | |
Member Functions Documentation
ClearAttribute(TUint16)
IMPORT_C void | ClearAttribute | ( | TUint16 | aAttribute | ) | |
ConstructL(TType, TDesC8 *)
CreateFileAttachmentImplIfRequiredL(CCalSessionImpl *)
void | CreateFileAttachmentImplIfRequiredL | ( | CCalSessionImpl * | aSessionImpl | ) | [private] |
Parameters
CCalSessionImpl * aSessionImpl | |
Impl()
CAgnAttachment & | Impl | ( | ) | const |
Label()
IMPORT_C const TDesC & | Label | ( | ) | const |
MimeType()
IMPORT_C const TDesC8 & | MimeType | ( | ) | const |
NewFileByContentIdL(const TDesC8 &)
NewL(CAgnAttachment &, CCalSessionImpl &)
CCalAttachment * | NewL | ( | CAgnAttachment & | aAttachment, |
| CCalSessionImpl & | aSessionImpl |
| ) | [static] |
Parameters
CAgnAttachment & aAttachment | |
CCalSessionImpl & aSessionImpl | |
SetAttribute(TUint16)
IMPORT_C void | SetAttribute | ( | TUint16 | aAttribute | ) | |
SetLabelL(const TDesC &)
IMPORT_C void | SetLabelL | ( | const TDesC & | aLabel | ) | |
SetMimeTypeL(const TDesC8 &)
IMPORT_C void | SetMimeTypeL | ( | const TDesC8 & | aContentMimeType | ) | |
Parameters
const TDesC8 & aContentMimeType | |
Type()
IMPORT_C TType | Type | ( | ) | const |
Value()
IMPORT_C const TDesC8 & | Value | ( | ) | const |
Member Enumerations Documentation
Enum TAttributes
Calendar attachment attributes. Note that the first 8 bits of this enumeration (up to 0x0080) are reserved for future use.
Enumerators
EExportInline = 0x0001 |
If the EExportInline flag is set on a file attachment then it will be exported inline as binary data.
Note that, by default:
EFile EUri
|
Enum TType
Calendar attachment type.
Enumerators
EUri |
A URI or link to an attachment, e.g. a file or HTTP server address.
|
EFile |
A file attachment to be stored in the calendar, either binary data or a file handle.
|
Member Data Documentation
CAgnAttachment * iAttachmentImpl
CAgnAttachment * | iAttachmentImpl | [private] |
CCalAttachmentFile * iFileAttachment
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.