Attica 5.109.0
Public Types | Public Member Functions | List of all members
Attica::Activity

Represents a single news item (also known as activity) More...

#include <Attica/Activity>

Public Types

typedef QList< ActivityList
 

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.
 
Activityoperator= (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 &timestamp)
 Sets the timestamp the Activity has been published.
 
QDateTime timestamp () const
 Gets the timestamp the Activity has been published.
 

Detailed Description

Represents a single news item (also known as activity)

Constructor & Destructor Documentation

◆ Activity() [1/2]

Attica::Activity::Activity ( )

Creates an empty Activity.

◆ Activity() [2/2]

Attica::Activity::Activity ( const Activity other)

Copy constructor.

Parameters
otherthe Activity to copy from

◆ ~Activity()

Attica::Activity::~Activity ( )

Destructor.

Member Function Documentation

◆ associatedPerson()

Person Attica::Activity::associatedPerson ( ) const

Gets the user bound to the Activity.

Returns
the user

◆ id()

QString Attica::Activity::id ( ) const

Gets the id of the Activity.

The id uniquely identifies an Activity with the OCS API.

Returns
the id

◆ isValid()

bool Attica::Activity::isValid ( ) const

Checks whether this Activity has an id.

Returns
true if an id has been set, false otherwise

◆ link()

QUrl Attica::Activity::link ( ) const

Gets the link to further information about this Activity.

Returns
the link

◆ message()

QString Attica::Activity::message ( ) const

Gets the message of the Activity.

Returns
the message

◆ operator=()

Activity & Attica::Activity::operator= ( const Activity other)

Assignment operator.

Parameters
otherthe Activity to assign from
Returns
pointer to this Activity

◆ setAssociatedPerson()

void Attica::Activity::setAssociatedPerson ( const Person associatedPerson)

Sets the user bound to the Activity.

Parameters
idthe new user

◆ setId()

void Attica::Activity::setId ( const QString &  id)

Sets the id of the Activity.

The id uniquely identifies an Activity with the OCS API.

Parameters
idthe new id

◆ setLink()

void Attica::Activity::setLink ( const QUrl &  link)

Sets the link to further information about this Activity.

Parameters
linkthe new link

◆ setMessage()

void Attica::Activity::setMessage ( const QString &  message)

Sets the message of the Activity.

Parameters
messagethe new message

◆ setTimestamp()

void Attica::Activity::setTimestamp ( const QDateTime &  timestamp)

Sets the timestamp the Activity has been published.

Parameters
timestampthe new timestamp

◆ timestamp()

QDateTime Attica::Activity::timestamp ( ) const

Gets the timestamp the Activity has been published.

Returns
the timestamp