Search for usage in LXR

Attica::Activity Class Reference

#include <Attica/Activity>

Public Types

typedef QList< ActivityList

Public Member Functions

 Activity ()
 Activity (const Activity &other)
 ~Activity ()
Person associatedPerson () const
QString id () const
bool isValid () const
QUrl link () const
QString message () const
Activityoperator= (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 &timestamp)
QDateTime timestamp () const

Detailed Description

Represents a single news item (also known as activity)

Definition at line 27 of file activity.h.

Constructor & Destructor Documentation

◆ Activity() [1/2]

Activity::Activity ( )

Creates an empty Activity.

Definition at line 25 of file activity.cpp.

◆ Activity() [2/2]

Activity::Activity ( const Activity other)

Copy constructor.

otherthe Activity to copy from

Definition at line 30 of file activity.cpp.

◆ ~Activity()

Activity::~Activity ( )


Definition at line 41 of file activity.cpp.

Member Function Documentation

◆ associatedPerson()

Person Activity::associatedPerson ( ) const

Gets the user bound to the Activity.

the user

Definition at line 60 of file activity.cpp.

◆ id()

QString Activity::id ( ) const

Gets the id of the Activity.

The id uniquely identifies an Activity with the OCS API.

the id

Definition at line 50 of file activity.cpp.

◆ isValid()

bool Activity::isValid ( ) const

Checks whether this Activity has an id.

true if an id has been set, false otherwise

Definition at line 95 of file activity.cpp.

◆ link()

QUrl Activity::link ( ) const

Gets the link to further information about this Activity.

the link

Definition at line 90 of file activity.cpp.

◆ message()

QString Activity::message ( ) const

Gets the message of the Activity.

the message

Definition at line 80 of file activity.cpp.

◆ operator=()

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

Assignment operator.

otherthe Activity to assign from
pointer to this Activity

Definition at line 35 of file activity.cpp.

◆ setAssociatedPerson()

void Activity::setAssociatedPerson ( const Person associatedPerson)

Sets the user bound to the Activity.

idthe new user

Definition at line 55 of file activity.cpp.

◆ setId()

void Activity::setId ( const QString id)

Sets the id of the Activity.

The id uniquely identifies an Activity with the OCS API.

idthe new id

Definition at line 45 of file activity.cpp.

◆ setLink()

void Activity::setLink ( const QUrl link)

Sets the link to further information about this Activity.

linkthe new link

Definition at line 85 of file activity.cpp.

◆ setMessage()

void Activity::setMessage ( const QString message)

Sets the message of the Activity.

messagethe new message

Definition at line 75 of file activity.cpp.

◆ setTimestamp()

void Activity::setTimestamp ( const QDateTime timestamp)

Sets the timestamp the Activity has been published.

timestampthe new timestamp

Definition at line 65 of file activity.cpp.

◆ timestamp()

QDateTime Activity::timestamp ( ) const

Gets the timestamp the Activity has been published.

the timestamp

Definition at line 70 of file activity.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 04:07:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.