Attica

person.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2008 Cornelius Schumacher <[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_PERSON_H
10 #define ATTICA_PERSON_H
11 
12 #include <QDate>
13 #include <QList>
14 #include <QMap>
15 #include <QSharedDataPointer>
16 #include <QUrl>
17 
18 #include "attica_export.h"
19 
20 namespace Attica
21 {
22 
23 class ATTICA_EXPORT Person
24 {
25 public:
26  typedef QList<Person> List;
27  class Parser;
28 
29  Person();
30  Person(const Person &other);
31  Person &operator=(const Person &other);
32  ~Person();
33 
34  void setId(const QString &);
35  QString id() const;
36 
37  void setFirstName(const QString &);
38  QString firstName() const;
39 
40  void setLastName(const QString &);
41  QString lastName() const;
42 
43  void setBirthday(const QDate &);
44  QDate birthday() const;
45 
46  void setCountry(const QString &);
47  QString country() const;
48 
49  void setLatitude(qreal);
50  qreal latitude() const;
51 
52  void setLongitude(qreal);
53  qreal longitude() const;
54 
55  void setAvatarUrl(const QUrl &);
56  QUrl avatarUrl() const;
57 
58  void setHomepage(const QString &);
59  QString homepage() const;
60 
61  void setCity(const QString &);
62  QString city() const;
63 
64  void addExtendedAttribute(const QString &key, const QString &value);
65  QString extendedAttribute(const QString &key) const;
66 
67  QMap<QString, QString> extendedAttributes() const;
68 
69  bool isValid() const;
70 
71 private:
72  class Private;
74 };
75 
76 }
77 
78 #endif
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.