Changeset View
Changeset View
Standalone View
Standalone View
src/datatypes/brand.cpp
- This file was copied from src/datatypes/rentalcar.cpp.
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | Copyright (C) 2018 Laurent Montel <montel@kde.org> | 2 | Copyright (C) 2018 Benjamin Port <benjamin.port@kde.org> | ||
3 | 3 | | |||
4 | This program is free software; you can redistribute it and/or modify it | 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 | 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 | 6 | the Free Software Foundation; either version 2 of the License, or (at your | ||
7 | option) any later version. | 7 | option) any later version. | ||
8 | 8 | | |||
9 | This program is distributed in the hope that it will be useful, but WITHOUT | 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 | 10 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public | 11 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public | ||
12 | License for more details. | 12 | License for more details. | ||
13 | 13 | | |||
14 | You should have received a copy of the GNU General Public License | 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/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #include "rentalcar.h" | 18 | #include "brand.h" | ||
19 | #include "datatypes_p.h" | 19 | #include "datatypes_p.h" | ||
20 | 20 | | |||
21 | #include <QDateTime> | | |||
22 | #include <QUrl> | | |||
23 | | ||||
24 | using namespace KItinerary; | 21 | using namespace KItinerary; | ||
25 | 22 | | |||
26 | namespace KItinerary { | 23 | namespace KItinerary { | ||
27 | 24 | | |||
28 | class RentalCarPrivate: public QSharedData { | 25 | class BrandPrivate : public QSharedData | ||
29 | 26 | { | |||
30 | public: | 27 | public: | ||
31 | QString name; | 28 | QString name; | ||
32 | QString model; | | |||
33 | }; | 29 | }; | ||
34 | 30 | | |||
35 | KITINERARY_MAKE_SIMPLE_CLASS(RentalCar) | 31 | KITINERARY_MAKE_SIMPLE_CLASS(Brand) | ||
36 | KITINERARY_MAKE_PROPERTY(RentalCar, QString, name, setName) | 32 | KITINERARY_MAKE_PROPERTY(Brand, QString, name, setName) | ||
37 | KITINERARY_MAKE_PROPERTY(RentalCar, QString, model, setModel) | 33 | | ||
38 | } | 34 | } | ||
39 | 35 | | |||
40 | #include "moc_rentalcar.cpp" | 36 | #include "moc_brand.cpp" |