Class of event from a feed. More...
#include <qeventfeed.h>
Public Types | |
enum | FeedType { photoFeed, messageFeed, commentFeed, videoFeed, audioFeed, likeFeed, tagFeed, friendFeed } |
List of supported feeds. More... | |
Public Member Functions | |
QEventFeed (QObject *parent=0) | |
The default constructor. | |
QEventFeed (const QEventFeed &src) | |
The copy constructor. | |
QEventFeed & | operator= (const QEventFeed &source) |
QDomElement | toQDomElement (QDomDocument &doc) const |
Store feed data to XML format. | |
Photo | toPhoto () const |
Static Public Member Functions | |
static void | copyData (QEventFeed *dst, const QEventFeed *src) |
static void | storeFeed (const QEventFeedList &list, const FeedType type, QString accountId) |
static QEventFeedList | loadFeed (const QString accountId, FeedType type) |
static QString | getKey (const QString accountId, const FeedType type) |
static QEventFeed | fromQDomElement (const QDomElement &fr, const QString &accountId, const FeedType type) |
Loads feed from XML struct. | |
static QString | typeToString (const FeedType type) |
Public Attributes | |
QString | accountId |
The ID of account. | |
QString | ownerId |
The ID of event's author. | |
QString | ownerName |
The name of event's author. | |
QString | text |
The contents of the event or comment. | |
QDateTime | created |
The event time creation. | |
QAttachment | attach |
Attached object. |
Class of event from a feed.
enum QEventFeed::FeedType |
List of supported feeds.
QEventFeed::QEventFeed | ( | QObject * | parent = 0 |
) | [explicit] |
The default constructor.
parent | The pointer to parent object. |
QEventFeed::QEventFeed | ( | const QEventFeed & | src | ) |
The copy constructor.
src | The source instance of QEventFeed class. |
QEventFeed QEventFeed::fromQDomElement | ( | const QDomElement & | fr, | |
const QString & | accountId, | |||
const FeedType | type | |||
) | [static] |
Loads feed from XML struct.
fr | XML struct with feed data | |
accountId | ID of account to which feed belongs | |
type | The type of feed. |
QDomElement QEventFeed::toQDomElement | ( | QDomDocument & | doc | ) | const |
Store feed data to XML format.
doc | root XML document |