mysocials-core 1.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

QAttachment Class Reference

Store attachment data of event or message. More...

#include <qattachment.h>

List of all members.

Public Types

enum  AttachmentType {
  ImageAttach, VideoAttach, AudioAttach, LinkAttach,
  NoteAttach
}

Public Member Functions

 QAttachment (QObject *parent=0)
 QAttachment (const QAttachment &src)
 The copy constructor.
QAttachmentoperator= (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.

Detailed Description

Store attachment data of event or message.


Constructor & Destructor Documentation

QAttachment::QAttachment ( const QAttachment src)

The copy constructor.

Parameters:
srcThe source instance of QAttachment class.

Member Function Documentation

QDomElement QAttachment::toQDomElement ( QDomDocument &  doc) const

Store attachment data to XML format.

Parameters:
docroot XML document
Returns:
XML structure

Member Data Documentation

The album Id.

Used at image attachment.

The video duration.

Used at video and audio attachment.

The path to small image/icon file.

Used at image, link and video attachment.

The URL to small image/icon.

Used at image, link and video attachment.

The path to image file.

Used at image attachment.

The name of attached object.

Used at image, audio, link, note and video attachment.

The URL to origin object.

Used at image, audio, link, note and video attachment.


The documentation for this class was generated from the following files: