Changeset View
Changeset View
Standalone View
Standalone View
src/datatypes/organization.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | |||||
54 | * @see https://schema.org/Airline | 54 | * @see https://schema.org/Airline | ||
55 | */ | 55 | */ | ||
56 | class KITINERARY_EXPORT Airline : public Organization | 56 | class KITINERARY_EXPORT Airline : public Organization | ||
57 | { | 57 | { | ||
58 | KITINERARY_GADGET(Airline) | 58 | KITINERARY_GADGET(Airline) | ||
59 | KITINERARY_PROPERTY(QString, iataCode, setIataCode) | 59 | KITINERARY_PROPERTY(QString, iataCode, setIataCode) | ||
60 | }; | 60 | }; | ||
61 | 61 | | |||
62 | /** Hotel. | ||||
63 | * @see https://schema.org/LodgingBusiness | ||||
64 | */ | ||||
65 | class KITINERARY_EXPORT LodgingBusiness: public Organization | ||||
66 | { | ||||
67 | KITINERARY_GADGET(LodgingBusiness) | ||||
68 | }; | ||||
69 | | ||||
70 | /** Food-related business (such as a restaurant, or a bakery). | ||||
71 | * @see https://schema.org/FoodEstablishment | ||||
72 | */ | ||||
73 | class KITINERARY_EXPORT FoodEstablishment: public Organization | ||||
74 | { | ||||
75 | KITINERARY_GADGET(FoodEstablishment) | ||||
76 | }; | ||||
77 | | ||||
62 | } // namespace KItinerary | 78 | } // namespace KItinerary | ||
63 | 79 | | |||
64 | Q_DECLARE_METATYPE(KItinerary::Organization) | 80 | Q_DECLARE_METATYPE(KItinerary::Organization) | ||
65 | Q_DECLARE_METATYPE(KItinerary::Airline) | 81 | Q_DECLARE_METATYPE(KItinerary::Airline) | ||
82 | Q_DECLARE_METATYPE(KItinerary::FoodEstablishment) | ||||
83 | Q_DECLARE_METATYPE(KItinerary::LodgingBusiness) | ||||
66 | 84 | | |||
67 | #endif // KITINERARY_ORGANIZATION_H | 85 | #endif // KITINERARY_ORGANIZATION_H |