Changeset View
Changeset View
Standalone View
Standalone View
src/datatypes/organization.cpp
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright (C) 2018 Luca Beltrame <lbeltrame@kde.org> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or modify it | ||||
5 | under the terms of the GNU Library General Public License as published by | ||||
6 | the Free Software Foundation; either version 2 of the License, or (at your | ||||
7 | option) any later version. | ||||
8 | | ||||
9 | This program is distributed in the hope that it will be useful, but WITHOUT | ||||
10 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||||
11 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public | ||||
12 | License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU General Public License | ||||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | */ | ||||
17 | | ||||
18 | #include "organization.h" | ||||
19 | #include "datatypes_p.h" | ||||
20 | | ||||
21 | #include <QUrl> | ||||
22 | | ||||
23 | using namespace KItinerary; | ||||
24 | | ||||
25 | namespace KItinerary { | ||||
26 | | ||||
27 | class OrganizationPrivate: public QSharedData | ||||
28 | { | ||||
29 | public: | ||||
30 | QString name; | ||||
31 | QString email; | ||||
32 | QString telephone; | ||||
33 | QUrl url; | ||||
34 | PostalAddress address; | ||||
35 | }; | ||||
36 | | ||||
37 | KITINERARY_MAKE_SIMPLE_CLASS(Organization) | ||||
38 | KITINERARY_MAKE_PROPERTY(Organization, QString, name, setName) | ||||
39 | KITINERARY_MAKE_PROPERTY(Organization, QString, email, setEmail) | ||||
40 | KITINERARY_MAKE_PROPERTY(Organization, QString, telephone, setTelephone) | ||||
41 | KITINERARY_MAKE_PROPERTY(Organization, QUrl, url, setUrl) | ||||
42 | KITINERARY_MAKE_PROPERTY(Organization, PostalAddress, address, setAddress) | ||||
43 | | ||||
44 | } | ||||
45 | | ||||
46 | #include "moc_organization.cpp" |