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

QEventFeed Class Reference

Class of event from a feed. More...

#include <qeventfeed.h>

List of all members.

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.
QEventFeedoperator= (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.

Detailed Description

Class of event from a feed.


Member Enumeration Documentation

List of supported feeds.

See also:
getFeed()
Enumerator:
photoFeed 

new images on service.

messageFeed 

New messages (status, not, etc.) on service.

commentFeed 

New comments on service.

videoFeed 

New videos on service.

audioFeed 

New audios on service.

likeFeed 

New likes on service.

tagFeed 

New tags on images on service.

friendFeed 

New friends and friends of friends on service.


Constructor & Destructor Documentation

QEventFeed::QEventFeed ( QObject *  parent = 0) [explicit]

The default constructor.

Parameters:
parentThe pointer to parent object.
QEventFeed::QEventFeed ( const QEventFeed src)

The copy constructor.

Parameters:
srcThe source instance of QEventFeed class.

Member Function Documentation

void QEventFeed::copyData ( QEventFeed dst,
const QEventFeed src 
) [static]
Parameters:
dst
src
QEventFeed QEventFeed::fromQDomElement ( const QDomElement &  fr,
const QString &  accountId,
const FeedType  type 
) [static]

Loads feed from XML struct.

Parameters:
frXML struct with feed data
accountIdID of account to which feed belongs
typeThe type of feed.
Returns:
News feed.
Parameters:
fr
accountId
QDomElement QEventFeed::toQDomElement ( QDomDocument &  doc) const

Store feed data to XML format.

Parameters:
docroot XML document
Returns:
XML structure

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