Attica::Activity Class

class Attica::Activity

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

Header: #include <Attica/Activity>
CMake: find_package(KF6 REQUIRED COMPONENTS Attica)
target_link_libraries(mytarget PRIVATE KF6::Attica)

Public Types

Public Functions

Activity()
Attica::Person associatedPerson() const
QString id() const
bool isValid() const
QUrl link() const
QString message() const
void setAssociatedPerson(const Attica::Person &associatedPerson)
void setId(const QString &id)
void setLink(const QUrl &link)
void setMessage(const QString &message)
void setTimestamp(const QDateTime &timestamp)
QDateTime timestamp() const

Detailed Description

Member Type Documentation

Activity::List

Member Function Documentation

Activity::Activity()

Creates an empty Activity

Attica::Person Activity::associatedPerson() const

Returns the user bound to the Activity.

See also setAssociatedPerson().

QString Activity::id() const

Gets the id of the Activity.

The id uniquely identifies an Activity with the OCS API.

Returns the id

See also setId().

bool Activity::isValid() const

Checks whether this Activity has an id Returns true if an id has been set, false otherwise

Returns the link to further information about this Activity.

See also setLink().

QString Activity::message() const

Returns the message of the Activity.

See also setMessage().

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

Sets the user bound to the Activity.

id the new user

See also associatedPerson().

void Activity::setId(const QString &id)

Sets the id of the Activity.

The id uniquely identifies an Activity with the OCS API.

id the new id

See also id().

Sets the link to further information about this Activity.

link the new link

See also link().

void Activity::setMessage(const QString &message)

Sets the message of the Activity.

message the new message

See also message().

void Activity::setTimestamp(const QDateTime &timestamp)

Sets the timestamp the Activity has been published.

timestamp the new timestamp

See also timestamp().

QDateTime Activity::timestamp() const

Returns the timestamp the Activity has been published.

See also setTimestamp().