Changeset View
Changeset View
Standalone View
Standalone View
src/datatypes/rentalcar.h
- This file was copied to src/datatypes/brand.h.
Show All 14 Lines | 1 | /* | |||
---|---|---|---|---|---|
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #ifndef KITINERARY_RENTALCAR_H | 18 | #ifndef KITINERARY_RENTALCAR_H | ||
19 | #define KITINERARY_RENTALCAR_H | 19 | #define KITINERARY_RENTALCAR_H | ||
20 | 20 | | |||
21 | #include "kitinerary_export.h" | 21 | #include "kitinerary_export.h" | ||
22 | #include "datatypes.h" | 22 | #include "datatypes.h" | ||
23 | #include "organization.h" | ||||
24 | #include "brand.h" | ||||
23 | 25 | | |||
24 | namespace KItinerary { | 26 | namespace KItinerary { | ||
25 | 27 | | |||
26 | class RentalCarPrivate; | 28 | class RentalCarPrivate; | ||
27 | 29 | | |||
28 | /** An event. | 30 | /** A car rental. | ||
29 | * @see https://developers.google.com/gmail/markup/reference/event-reservation | 31 | * @see https://developers.google.com/gmail/markup/reference/rental-car | ||
30 | */ | 32 | */ | ||
31 | class KITINERARY_EXPORT RentalCar | 33 | class KITINERARY_EXPORT RentalCar | ||
32 | { | 34 | { | ||
33 | KITINERARY_GADGET(RentalCar) | 35 | KITINERARY_GADGET(RentalCar) | ||
34 | KITINERARY_PROPERTY(QString, name, setName) | 36 | KITINERARY_PROPERTY(QString, name, setName) | ||
35 | KITINERARY_PROPERTY(QString, model, setModel) | 37 | KITINERARY_PROPERTY(QString, model, setModel) | ||
36 | //Add more info : brand/rentalcompany | 38 | KITINERARY_PROPERTY(KItinerary::Organization, rentalCompany, setRentalCompany) | ||
39 | KITINERARY_PROPERTY(KItinerary::Brand, brand, setBrand) | ||||
40 | | ||||
37 | private: | 41 | private: | ||
38 | QExplicitlySharedDataPointer<RentalCarPrivate> d; | 42 | QExplicitlySharedDataPointer<RentalCarPrivate> d; | ||
39 | }; | 43 | }; | ||
40 | 44 | | |||
41 | } | 45 | } | ||
42 | 46 | | |||
43 | Q_DECLARE_METATYPE(KItinerary::RentalCar) | 47 | Q_DECLARE_METATYPE(KItinerary::RentalCar) | ||
44 | 48 | | |||
45 | #endif // KITINERARY_RENTALCAR_H | 49 | #endif // KITINERARY_RENTALCAR_H |