1 | /* |
2 | This file is part of the kholidays library. |
3 | |
4 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
5 | Copyright (c) 2004 Allen Winter <winter@kde.org> |
6 | Copyright (c) 2008 David Jarvie <djarvie@kde.org> |
7 | Copyright 2010 John Layt <john@layt.net> |
8 | |
9 | This library is free software; you can redistribute it and/or |
10 | modify it under the terms of the GNU Library General Public |
11 | License as published by the Free Software Foundation; either |
12 | version 2 of the License, or (at your option) any later version. |
13 | |
14 | This library is distributed in the hope that it will be useful, |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | GNU Library General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Library General Public License |
20 | along with this library; see the file COPYING.LIB. If not, write to the |
21 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 | Boston, MA 02110-1301, USA. |
23 | */ |
24 | |
25 | #ifndef KHOLIDAYS_HOLIDAY_P_H |
26 | #define KHOLIDAYS_HOLIDAY_P_H |
27 | |
28 | #include "holiday.h" |
29 | |
30 | #include <QtCore/QDateTime> |
31 | #include <QtCore/QFile> |
32 | #include <QtCore/QSharedData> |
33 | |
34 | namespace KHolidays { |
35 | |
36 | class HolidayPrivate : public QSharedData |
37 | { |
38 | public: |
39 | HolidayPrivate() |
40 | { |
41 | } |
42 | |
43 | HolidayPrivate( const HolidayPrivate &other ) : QSharedData( other ) |
44 | { |
45 | mObservedDate = other.mObservedDate; |
46 | mDuration = other.mDuration; |
47 | mText = other.mText; |
48 | mShortText = other.mShortText; |
49 | mDayType = other.mDayType; |
50 | } |
51 | |
52 | QDate mObservedDate; |
53 | int mDuration; |
54 | QString mText; |
55 | QString mShortText; |
56 | Holiday::DayType mDayType; |
57 | }; |
58 | |
59 | } |
60 | |
61 | #endif // KHOLIDAYS_HOLIDAY_P_H |
62 | |