The QOrganizerItemAttachment class contains information about a file (or other attachment) which is related to a particular organizer item. More...
#include <QOrganizerItemAttachment>
Inherits QOrganizerItemDetail.
QByteArray | attachmentData () const |
QString | attachmentMimeType () const |
QString | description () const |
void | setAttachment ( const QByteArray & data, const QString & mimeType ) |
void | setDescription ( const QString & description ) |
const QLatin1Constant | DefinitionName |
const QLatin1Constant | FieldAttachmentData |
const QLatin1Constant | FieldAttachmentMimeType |
const QLatin1Constant | FieldDescription |
The QOrganizerItemAttachment class contains information about a file (or other attachment) which is related to a particular organizer item.
This leaf-class has been part of the default schema since version 1.2 of the Qt Mobility project.
Returns the data of the attachment, if it was specified. If the attachment detail stores a url of an attachment instead of a data blob attachment, this function will return a default-constructed byte array.
Returns the mime type of the attachment, if known. If the mime type of the attachment was not specified, this function will return an empty QString.
Returns a string for a description associated with the attachment to an organizer item.
See also setDescription().
Sets the attachment value to be the given data, and specifies that the mime-type of the attachment is the given mimeType. If the given mimeType is empty, it specifies that the attachment is of an unknown mime type. Since the data value is a free-form blob, clients must specify mimeType in order to allow other clients to interpret the attachment correctly.
Sets a description associated with the attachment to an organizer item to description.
See also description().
The constant string which identifies the definition of details which contain information about arbitrary attachments.
The constant key for which the attachment data value is stored in details of the QOrganizerItemAttachment type. This data can be any arbitrary blob, which means that the client should also set the mime-type associated with the attachment if possible.
The constant key for which the attachment mime-type value is stored in details of the QOrganizerItemAttachment type.
The constant key for which the attachment description value is stored in details of the QOrganizerItemAttachment type.