Pages
API Documentation
On this page

Attica::Activity Class

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)

List of all members, including inherited members

Public Types

Public Functions

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()

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.