Attica 5.109.0
|
Represents a single news item (also known as activity) More...
#include <Attica/Activity>
Public Types | |
typedef QList< Activity > | List |
Public Member Functions | |
Activity () | |
Creates an empty Activity. | |
Activity (const Activity &other) | |
Copy constructor. | |
~Activity () | |
Destructor. | |
Person | associatedPerson () const |
Gets the user bound to the Activity. | |
QString | id () const |
Gets the id of the Activity. | |
bool | isValid () const |
Checks whether this Activity has an id. | |
QUrl | link () const |
Gets the link to further information about this Activity. | |
QString | message () const |
Gets the message of the Activity. | |
Activity & | operator= (const Activity &other) |
Assignment operator. | |
void | setAssociatedPerson (const Person &associatedPerson) |
Sets the user bound to the Activity. | |
void | setId (const QString &id) |
Sets the id of the Activity. | |
void | setLink (const QUrl &link) |
Sets the link to further information about this Activity. | |
void | setMessage (const QString &message) |
Sets the message of the Activity. | |
void | setTimestamp (const QDateTime ×tamp) |
Sets the timestamp the Activity has been published. | |
QDateTime | timestamp () const |
Gets the timestamp the Activity has been published. | |
Represents a single news item (also known as activity)
Attica::Activity::Activity | ( | ) |
Creates an empty Activity.
Attica::Activity::Activity | ( | const Activity & | other | ) |
Copy constructor.
other | the Activity to copy from |
Attica::Activity::~Activity | ( | ) |
Destructor.
Person Attica::Activity::associatedPerson | ( | ) | const |
Gets the user bound to the Activity.
QString Attica::Activity::id | ( | ) | const |
bool Attica::Activity::isValid | ( | ) | const |
Checks whether this Activity has an id.
true
if an id has been set, false
otherwise QUrl Attica::Activity::link | ( | ) | const |
Gets the link to further information about this Activity.
QString Attica::Activity::message | ( | ) | const |
Gets the message of the Activity.
void Attica::Activity::setAssociatedPerson | ( | const Person & | associatedPerson | ) |
Sets the user bound to the Activity.
id | the new user |
void Attica::Activity::setId | ( | const QString & | id | ) |
void Attica::Activity::setLink | ( | const QUrl & | link | ) |
Sets the link to further information about this Activity.
link | the new link |
void Attica::Activity::setMessage | ( | const QString & | message | ) |
Sets the message of the Activity.
message | the new message |
void Attica::Activity::setTimestamp | ( | const QDateTime & | timestamp | ) |
Sets the timestamp the Activity has been published.
timestamp | the new timestamp |
QDateTime Attica::Activity::timestamp | ( | ) | const |
Gets the timestamp the Activity has been published.