Attica 5.109.0
|
Represents a single event. More...
#include <Attica/Event>
Public Types | |
typedef QList< Event > | List |
Public Member Functions | |
Event () | |
Creates an empty Event. | |
Event (const Event &other) | |
Copy constructor. | |
~Event () | |
Destructor. | |
void | 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. | |
QString | city () const |
Gets the city where the Event takes place. | |
QString | country () const |
Gets the country where the Event takes place. | |
QString | description () const |
Gets the description of the Event. | |
QDate | endDate () const |
Gets the start date of the Event. | |
QString | extendedAttribute (const QString &key) const |
Get an attribute that is not included in the basis set of attributes exposed by the Event class. | |
QMap< QString, QString > | extendedAttributes () const |
Get all attributes that are not included in the basis set of attributes exposed by the Event class. | |
QUrl | homepage () const |
Gets the homepage of the Event. | |
QString | id () const |
Gets the id of the Event. | |
bool | isValid () const |
Checks whether this Event has an id. | |
qreal | latitude () const |
Gets the latitude of the position the Event takes place. | |
qreal | longitude () const |
Gets the longitude of the position the Event takes place. | |
QString | name () const |
Gets the name of the Event. | |
Event & | operator= (const Event &other) |
Assignment operator. | |
void | setCity (const QString &city) |
Sets the city where the Event takes place. | |
void | setCountry (const QString &country) |
Sets the country where the Event takes place. | |
void | setDescription (const QString &description) |
Sets the description of the Event. | |
void | setEndDate (const QDate &endDate) |
Sets the end date of the Event. | |
void | setHomepage (const QUrl &homepage) |
Sets the homepage of the Event. | |
void | setId (const QString &id) |
Sets the id of the Event. | |
void | setLatitude (qreal latitude) |
Sets the latitude of the position the Event takes place. | |
void | setLongitude (qreal longitude) |
Sets the longitude of the position the Event takes place. | |
void | setName (const QString &name) |
Sets the name of the Event. | |
void | setStartDate (const QDate &startDate) |
Sets the start date of the Event. | |
void | setUser (const QString &user) |
Sets the id of the user bound to the Event. | |
QDate | startDate () const |
Gets the start date of the Event. | |
QString | user () const |
Gets the id of the user bound to the Event. | |
Represents a single event.
Attica::Event::Event | ( | ) |
Creates an empty Event.
Attica::Event::Event | ( | const Event & | other | ) |
Copy constructor.
other | the Event to copy from |
Attica::Event::~Event | ( | ) |
Destructor.
void Attica::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 Attica::Event::city | ( | ) | const |
Gets the city where the Event takes place.
QString Attica::Event::country | ( | ) | const |
Gets the country where the Event takes place.
QString Attica::Event::description | ( | ) | const |
Gets the description of the Event.
QDate Attica::Event::endDate | ( | ) | const |
Gets the start date of the Event.
QString Attica::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 |
QMap< QString, QString > Attica::Event::extendedAttributes | ( | ) | const |
Get all attributes that are not included in the basis set of attributes exposed by the Event class.
QUrl Attica::Event::homepage | ( | ) | const |
Gets the homepage of the Event.
QString Attica::Event::id | ( | ) | const |
bool Attica::Event::isValid | ( | ) | const |
Checks whether this Event has an id.
true
if an id has been set, false
otherwise qreal Attica::Event::latitude | ( | ) | const |
Gets the latitude of the position the Event takes place.
qreal Attica::Event::longitude | ( | ) | const |
Gets the longitude of the position the Event takes place.
QString Attica::Event::name | ( | ) | const |
Gets the name of the Event.
void Attica::Event::setCity | ( | const QString & | city | ) |
Sets the city where the Event takes place.
city | the new city |
void Attica::Event::setCountry | ( | const QString & | country | ) |
Sets the country where the Event takes place.
country | the new country |
void Attica::Event::setDescription | ( | const QString & | description | ) |
Sets the description of the Event.
description | the new description |
void Attica::Event::setEndDate | ( | const QDate & | endDate | ) |
Sets the end date of the Event.
endDate | the end date |
void Attica::Event::setHomepage | ( | const QUrl & | homepage | ) |
Sets the homepage of the Event.
homepage | the new homepage |
void Attica::Event::setId | ( | const QString & | id | ) |
void Attica::Event::setLatitude | ( | qreal | latitude | ) |
Sets the latitude of the position the Event takes place.
latitude | the new latitude |
void Attica::Event::setLongitude | ( | qreal | longitude | ) |
Sets the longitude of the position the Event takes place.
longitude | the new latitude |
void Attica::Event::setName | ( | const QString & | name | ) |
Sets the name of the Event.
name | the new name |
void Attica::Event::setStartDate | ( | const QDate & | startDate | ) |
Sets the start date of the Event.
startDate | the start date |
void Attica::Event::setUser | ( | const QString & | user | ) |
Sets the id of the user bound to the Event.
user | the new user id |
QDate Attica::Event::startDate | ( | ) | const |
Gets the start date of the Event.
QString Attica::Event::user | ( | ) | const |
Gets the id of the user bound to the Event.