Attica

person.h
1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2008 Cornelius Schumacher <schumacher@kde.org>
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
20namespace Attica
21{
22
23/**
24 * @class Person person.h <Attica/Person>
25 *
26 * Represents a person.
27 */
28class ATTICA_EXPORT Person
29{
30public:
31 typedef QList<Person> List;
32 class Parser;
33
34 Person();
35 Person(const Person &other);
36 Person &operator=(const Person &other);
37 ~Person();
38
39 void setId(const QString &);
40 QString id() const;
41
42 void setFirstName(const QString &);
43 QString firstName() const;
44
45 void setLastName(const QString &);
46 QString lastName() const;
47
48 void setBirthday(const QDate &);
49 QDate birthday() const;
50
51 void setCountry(const QString &);
52 QString country() const;
53
54 void setLatitude(qreal);
55 qreal latitude() const;
56
57 void setLongitude(qreal);
58 qreal longitude() const;
59
60 void setAvatarUrl(const QUrl &);
61 QUrl avatarUrl() const;
62
63 void setHomepage(const QString &);
64 QString homepage() const;
65
66 void setCity(const QString &);
67 QString city() const;
68
69 void addExtendedAttribute(const QString &key, const QString &value);
70 QString extendedAttribute(const QString &key) const;
71
72 QMap<QString, QString> extendedAttributes() const;
73
74 bool isValid() const;
75
76private:
77 class Private;
79};
80
81}
82
83#endif
Represents a person.
Definition person.h:29
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:10:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.