Attica::Activity

Attica::Activity Class Reference

#include <activity.h>

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 26 of file activity.h.

Constructor & Destructor Documentation

Activity::Activity ( )

Creates an empty Activity.

Definition at line 25 of file activity.cpp.

Activity::Activity ( const Activity other)

Copy constructor.

Parameters
otherthe Activity to copy from

Definition at line 29 of file activity.cpp.

Activity::~Activity ( )

Destructor.

Definition at line 40 of file activity.cpp.

Member Function Documentation

Person Activity::associatedPerson ( ) const

Gets the user bound to the Activity.

Returns
the user

Definition at line 59 of file activity.cpp.

QString Activity::id ( ) const

Gets the id of the Activity.

The id uniquely identifies an Activity with the OCS API.

Returns
the id

Definition at line 49 of file activity.cpp.

bool Activity::isValid ( ) const

Checks whether this Activity has an id.

Returns
true if an id has been set, false otherwise

Definition at line 94 of file activity.cpp.

QUrl Activity::link ( ) const

Gets the link to further information about this Activity.

Returns
the link

Definition at line 89 of file activity.cpp.

QString Activity::message ( ) const

Gets the message of the Activity.

Returns
the message

Definition at line 79 of file activity.cpp.

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

Assignment operator.

Parameters
otherthe Activity to assign from
Returns
pointer to this Activity

Definition at line 34 of file activity.cpp.

void Activity::setAssociatedPerson ( const Person &  associatedPerson)

Sets the user bound to the Activity.

Parameters
idthe new user

Definition at line 54 of file activity.cpp.

void 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

Definition at line 44 of file activity.cpp.

void Activity::setLink ( const QUrl link)

Sets the link to further information about this Activity.

Parameters
linkthe new link

Definition at line 84 of file activity.cpp.

void Activity::setMessage ( const QString message)

Sets the message of the Activity.

Parameters
messagethe new message

Definition at line 74 of file activity.cpp.

void Activity::setTimestamp ( const QDateTime timestamp)

Sets the timestamp the Activity has been published.

Parameters
timestampthe new timestamp

Definition at line 64 of file activity.cpp.

QDateTime Activity::timestamp ( ) const

Gets the timestamp the Activity has been published.

Returns
the timestamp

Definition at line 69 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-2020 The KDE developers.
Generated on Sat Jul 4 2020 23:01:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.