Attica::Event Class

class Attica::Event

Represents a single event. More...

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

Public Types

Public Functions

Event()
void addExtendedAttribute(const QString &key, const QString &value)
QString city() const
QString country() const
QString description() const
QDate endDate() const
QString extendedAttribute(const QString &key) const
QMap<QString, QString> extendedAttributes() const
QUrl homepage() const
QString id() const
bool isValid() const
qreal latitude() const
qreal longitude() const
QString name() const
void setCity(const QString &city)
void setCountry(const QString &country)
void setDescription(const QString &description)
void setEndDate(const QDate &endDate)
void setHomepage(const QUrl &homepage)
void setId(const QString &id)
void setLatitude(qreal latitude)
void setLongitude(qreal longitude)
void setName(const QString &name)
void setStartDate(const QDate &startDate)
void setUser(const QString &user)
QDate startDate() const
QString user() const

Detailed Description

Member Type Documentation

Event::List

Member Function Documentation

Event::Event()

Creates an empty Event

void Event::addExtendedAttribute(const QString &key, const QString &value)

Add an attribute that is not included in the basis set of attributes exposed by the Event class.

If the attribute already exists it gets overwritten.

key the key of the attribute

value the value of the attribute

QString Event::city() const

Returns the city where the Event takes place.

See also setCity().

QString Event::country() const

Returns the country where the Event takes place.

See also setCountry().

QString Event::description() const

Returns the description of the Event.

See also setDescription().

QDate Event::endDate() const

Returns the start date of the Event.

See also setEndDate().

QString Event::extendedAttribute(const QString &key) const

Get an attribute that is not included in the basis set of attributes exposed by the Event class.

key the key of the attribute

Returns the value of the attribute with the specified key, or an empty string, if the key has not been found

QMap<QString, QString> Event::extendedAttributes() const

Get all attributes that are not included in the basis set of attributes exposed by the Event class.

QUrl Event::homepage() const

Returns the homepage of the Event.

See also setHomepage().

QString Event::id() const

Returns the id of the Event.

The id uniquely identifies a Event with the OCS API.

See also setId().

bool Event::isValid() const

Checks whether this Event has an id

qreal Event::latitude() const

Returns the latitude of the position the Event takes place.

See also setLatitude().

qreal Event::longitude() const

Returns the longitude of the position the Event takes place.

See also setLongitude().

QString Event::name() const

Returns the name of the Event.

See also setName().

void Event::setCity(const QString &city)

Sets the city where the Event takes place.

city the new city

See also city().

void Event::setCountry(const QString &country)

Sets the country where the Event takes place.

country the new country

See also country().

void Event::setDescription(const QString &description)

Sets the description of the Event.

description the new description

See also description().

void Event::setEndDate(const QDate &endDate)

Sets the end date of the Event.

endDate the end date

See also endDate().

void Event::setHomepage(const QUrl &homepage)

Sets the homepage of the Event.

homepage the new homepage

See also homepage().

void Event::setId(const QString &id)

Sets the id of the Event.

The id uniquely identifies a Event with the OCS API.

id the new id

See also id().

void Event::setLatitude(qreal latitude)

Sets the latitude of the position the Event takes place.

See also latitude().

void Event::setLongitude(qreal longitude)

Sets the longitude of the position the Event takes place.

See also longitude().

void Event::setName(const QString &name)

Sets the name of the Event.

name the new name

See also name().

void Event::setStartDate(const QDate &startDate)

Sets the start date of the Event.

startDate the start date

See also startDate().

void Event::setUser(const QString &user)

Sets the id of the user bound to the Event.

user the new user id

See also user().

QDate Event::startDate() const

Returns the start date of the Event.

See also setStartDate().

QString Event::user() const

Returns the id of the user bound to the Event.

See also setUser().