Attica::Activity
#include <Attica/Activity>
Public Types | |
typedef QList< Activity > | List |
Public Member Functions | |
Activity () | |
Activity (const Activity &other) | |
~Activity () | |
Person | associatedPerson () const |
QString | id () const |
bool | isValid () const |
QUrl | link () const |
QString | message () const |
Activity & | operator= (const Activity &other) |
void | setAssociatedPerson (const Person &associatedPerson) |
void | setId (const QString &id) |
void | setLink (const QUrl &link) |
void | setMessage (const QString &message) |
void | setTimestamp (const QDateTime ×tamp) |
QDateTime | timestamp () const |
Detailed Description
Represents a single news item (also known as activity)
Definition at line 27 of file activity.h.
Member Typedef Documentation
◆ List
Definition at line 30 of file activity.h.
Constructor & Destructor Documentation
◆ Activity() [1/2]
Creates an empty Activity.
Definition at line 25 of file activity.cpp.
◆ Activity() [2/2]
Copy constructor.
- Parameters
-
other the Activity to copy from
Definition at line 30 of file activity.cpp.
◆ ~Activity()
Destructor.
Definition at line 41 of file activity.cpp.
Member Function Documentation
◆ associatedPerson()
◆ id()
Gets the id of the Activity.
The id uniquely identifies an Activity with the OCS API.
- Returns
- the id
Definition at line 50 of file activity.cpp.
◆ isValid()
Checks whether this Activity has an id.
- Returns
true
if an id has been set,false
otherwise
Definition at line 95 of file activity.cpp.
◆ link()
Gets the link to further information about this Activity.
- Returns
- the link
Definition at line 90 of file activity.cpp.
◆ message()
◆ operator=()
Assignment operator.
- Parameters
-
other the Activity to assign from
- Returns
- pointer to this Activity
Definition at line 35 of file activity.cpp.
◆ setAssociatedPerson()
Sets the user bound to the Activity.
- Parameters
-
id the new user
Definition at line 55 of file activity.cpp.
◆ setId()
Sets the id of the Activity.
The id uniquely identifies an Activity with the OCS API.
- Parameters
-
id the new id
Definition at line 45 of file activity.cpp.
◆ setLink()
Sets the link to further information about this Activity.
- Parameters
-
link the new link
Definition at line 85 of file activity.cpp.
◆ setMessage()
Sets the message of the Activity.
- Parameters
-
message the new message
Definition at line 75 of file activity.cpp.
◆ setTimestamp()
Sets the timestamp the Activity has been published.
- Parameters
-
timestamp the new timestamp
Definition at line 65 of file activity.cpp.
◆ timestamp()
Gets the timestamp the Activity has been published.
- Returns
- the timestamp
Definition at line 70 of file activity.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:58:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.