class CMsvAttachment : public CBase |
Represents a single attachment and information about the attachment.
This object is used to represent all types of attachments (file, linked file or message entry). Note that some APIs may not be valid for particular attachment types. This is described under each method. It is the responsibility of the client to ensure that the data about the attachment is set such as its mime-type or size.
Private Member Functions | |
---|---|
CMsvAttachment(TMsvAttachmentType) | |
CMsvAttachment(TMsvAttachmentType, TInt, HBufC8 *, HBufC *) | |
void | ConstructL() |
void | ConstructL(const CMsvAttachment &) |
Public Member Enumerations | |
---|---|
enum | TMsvAttachmentType { EMsvFile = 0, EMsvLinkedFile, EMsvMessageEntry } |
Private Attributes | |
---|---|
HBufC * | iAttachmentName |
CMsvAttributeManager * | iAttributeManager |
TBool | iComplete |
TMsvId | iEntryId |
HBufC * | iFilePath |
TMsvAttachmentId | iId |
HBufC8 * | iMimeType |
TBool | iNeedsPath |
TInt | iSize |
TMsvAttachmentType | iType |
CMsvAttachment | ( | TMsvAttachmentType | aType | ) | [private] |
TMsvAttachmentType aType |
CMsvAttachment | ( | TMsvAttachmentType | aType, |
TInt | aSize, | ||
HBufC8 * | aMimeType, | ||
HBufC * | aAttachmentName | ||
) | [private] |
TMsvAttachmentType aType | |
TInt aSize | |
HBufC8 * aMimeType | |
HBufC * aAttachmentName |
void | ConstructL | ( | const CMsvAttachment & | aAttachment | ) | [private] |
const CMsvAttachment & aAttachment |
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
IMPORT_C TInt | GetDesC8Attribute | ( | TUid | aAttributeId, |
TPtrC8 & | aAttribute | |||
) | const |
IMPORT_C TInt | GetIntAttribute | ( | TUid | aAttributeId, |
TInt & | aAttribute | |||
) | const |
IMPORT_C CMsvAttachment * | NewL | ( | TMsvAttachmentType | aType | ) | [static] |
TMsvAttachmentType aType |
IMPORT_C CMsvAttachment * | NewL | ( | TMsvAttachmentType | aType, |
TInt | aSize, | |||
HBufC8 * | aMimeType, | |||
HBufC * | aAttachmentName | |||
) | [static] |
TMsvAttachmentType aType | |
TInt aSize | |
HBufC8 * aMimeType | |
HBufC * aAttachmentName |
IMPORT_C CMsvAttachment * | NewL | ( | const CMsvAttachment & | aAttachment | ) | [static] |
const CMsvAttachment & aAttachment |
IMPORT_C void | RemoveDesC8Attribute | ( | TUid | aAttributeId | ) |
TUid aAttributeId |
IMPORT_C void | RemoveIntAttribute | ( | TUid | aAttributeId | ) |
TUid aAttributeId |
IMPORT_C void | SetAttachmentNameL | ( | const TDesC & | aAttachmentName | ) |
const TDesC & aAttachmentName |
IMPORT_C void | SetDesC8AttributeL | ( | TUid | aAttributeId, |
const TDesC8 & | aAttribute | |||
) |
void | SetFilePathL | ( | const TDesC & | aFilePath | ) |
const TDesC & aFilePath |
IMPORT_C void | SetMimeTypeL | ( | const TDesC8 & | aMimeType | ) |
const TDesC8 & aMimeType |
Enum to define the different types of attachments supported by messaging.
EMsvFile = 0 |
File attachment. This is a file attachment that is copied into the message store. |
EMsvLinkedFile |
Linked file attachment. This is an attachment that is linked to using its file path, this is not copied into the message store. |
EMsvMessageEntry |
Message entry attachment. This is a message entry that is registered as an attachment. |
HBufC * | iAttachmentName | [private] |
Name of the attachment to identify to the attachment.
CMsvAttributeManager * | iAttributeManager | [private] |
Attribute manager for handling the attributes for this attachment.
HBufC * | iFilePath | [private] |
The full file path and file name of attachment files and linked files.
TMsvAttachmentId | iId | [private] |
The unique attachment Id. This is unique per message entry and is auto-assigned.
HBufC8 * | iMimeType | [private] |
Descriptor indicating the mime type of the attachment.