Changeset View
Changeset View
Standalone View
Standalone View
src/datatypes/organization.h
- 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 | | ||||
19 | #ifndef KITINERARY_ORGANIZATION_H | ||||
20 | #define KITINERARY_ORGANIZATION_H | ||||
21 | | ||||
22 | #include "kitinerary_export.h" | ||||
23 | | ||||
24 | #include "datatypes.h" | ||||
25 | #include "place.h" | ||||
26 | | ||||
27 | class QUrl; | ||||
28 | | ||||
29 | namespace KItinerary { | ||||
30 | | ||||
31 | class OrganizationPrivate; | ||||
32 | | ||||
33 | /** An organization | ||||
34 | * @see https://schema.org/Organization | ||||
35 | */ | ||||
36 | | ||||
37 | class KITINERARY_EXPORT Organization | ||||
38 | { | ||||
39 | KITINERARY_GADGET(Organization) | ||||
40 | KITINERARY_PROPERTY(QString, name, setName) | ||||
41 | KITINERARY_PROPERTY(QString, email, setEmail) | ||||
42 | KITINERARY_PROPERTY(QString, telephone, setTelephone) | ||||
43 | KITINERARY_PROPERTY(QUrl, url, setUrl) | ||||
44 | KITINERARY_PROPERTY(KItinerary::PostalAddress, address, setAddress) | ||||
45 | private: | ||||
46 | QExplicitlySharedDataPointer<OrganizationPrivate> d; | ||||
47 | }; | ||||
48 | | ||||
49 | } // namespace KItinerary | ||||
50 | | ||||
51 | Q_DECLARE_METATYPE(KItinerary::Organization) | ||||
52 | | ||||
53 | #endif // KITINERARY_ORGANIZATION_H |