Store attachment data of event or message. More...
#include <qattachment.h>
Public Types | |
| enum | AttachmentType { ImageAttach, VideoAttach, AudioAttach, LinkAttach, NoteAttach } |
Public Member Functions | |
| QAttachment (QObject *parent=0) | |
| QAttachment (const QAttachment &src) | |
| The copy constructor. | |
| QAttachment & | operator= (const QAttachment &src) |
| QDomElement | toQDomElement (QDomDocument &doc) const |
| Store attachment data to XML format. | |
Static Public Member Functions | |
| static void | copyData (QAttachment *dst, const QAttachment *src) |
| static QAttachment | fromQDomElement (const QDomElement &fr, const QString &accountId) |
Public Attributes | |
| QString | id |
| The object ID. | |
| QString | ownerId |
| The ID of author. | |
| AttachmentType | type |
| The type of attachment. | |
| QString | name |
| The name of attached object. | |
| QString | albumId |
| The album Id. | |
| QString | iconUrl |
| The URL to small image/icon. | |
| QString | icon |
| The path to small image/icon file. | |
| QString | objectUrl |
| The URL to origin object. | |
| QString | image |
| The path to image file. | |
| QString | duration |
| The video duration. | |
Store attachment data of event or message.
| QAttachment::QAttachment | ( | const QAttachment & | src | ) |
The copy constructor.
| src | The source instance of QAttachment class. |
| QDomElement QAttachment::toQDomElement | ( | QDomDocument & | doc | ) | const |
Store attachment data to XML format.
| doc | root XML document |
| QString QAttachment::albumId |
The album Id.
Used at image attachment.
| QString QAttachment::duration |
The video duration.
Used at video and audio attachment.
| QString QAttachment::icon |
The path to small image/icon file.
Used at image, link and video attachment.
| QString QAttachment::iconUrl |
The URL to small image/icon.
Used at image, link and video attachment.
| QString QAttachment::image |
The path to image file.
Used at image attachment.
| QString QAttachment::name |
The name of attached object.
Used at image, audio, link, note and video attachment.
| QString QAttachment::objectUrl |
The URL to origin object.
Used at image, audio, link, note and video attachment.
1.6.3