Attica

event.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2009 Eckhart W├Ârner <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 
9 #ifndef ATTICA_EVENT_H
10 #define ATTICA_EVENT_H
11 
12 #include "attica_export.h"
13 
14 #include <QDate>
15 #include <QList>
16 #include <QMap>
17 #include <QSharedDataPointer>
18 #include <QUrl>
19 
20 namespace Attica
21 {
22 
26 class ATTICA_EXPORT Event
27 {
28 public:
29  typedef QList<Event> List;
30  class Parser;
31 
35  Event();
36 
41  Event(const Event &other);
42 
48  Event &operator=(const Event &other);
49 
53  ~Event();
54 
60  void setId(const QString &id);
61 
67  QString id() const;
68 
73  void setName(const QString &name);
74 
79  QString name() const;
80 
85  void setDescription(const QString &description);
86 
91  QString description() const;
92 
97  void setUser(const QString &user);
98 
103  QString user() const;
104 
109  void setStartDate(const QDate &startDate);
110 
115  QDate startDate() const;
116 
121  void setEndDate(const QDate &endDate);
122 
127  QDate endDate() const;
128 
133  void setLatitude(qreal latitude);
134 
139  qreal latitude() const;
140 
145  void setLongitude(qreal longitude);
146 
151  qreal longitude() const;
152 
157  void setHomepage(const QUrl &homepage);
158 
163  QUrl homepage() const;
164 
169  void setCountry(const QString &country);
170 
175  QString country() const;
176 
181  void setCity(const QString &city);
182 
187  QString city() const;
188 
195  void addExtendedAttribute(const QString &key, const QString &value);
196 
202  QString extendedAttribute(const QString &key) const;
203 
208  QMap<QString, QString> extendedAttributes() const;
209 
214  bool isValid() const;
215 
216 private:
217  class Private;
219 };
220 
221 }
222 
223 #endif
Represents a single event.
Definition: event.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.