File indexing completed on 2022-11-29 18:26:46

0001 /*
0002     This file is part of the kholidays library.
0003 
0004     SPDX-FileCopyrightText: 2001 Cornelius Schumacher <schumacher@kde.org>
0005     SPDX-FileCopyrightText: 2004 Allen Winter <winter@kde.org>
0006     SPDX-FileCopyrightText: 2008 David Jarvie <djarvie@kde.org>
0007     SPDX-FileCopyrightText: 2010 John Layt <john@layt.net>
0008 
0009     SPDX-License-Identifier: LGPL-2.0-or-later
0010 */
0011 
0012 #ifndef KHOLIDAYS_HOLIDAY_P_H
0013 #define KHOLIDAYS_HOLIDAY_P_H
0014 
0015 #include "holiday.h"
0016 #include <QDateTime>
0017 #include <QSharedData>
0018 
0019 namespace KHolidays
0020 {
0021 class HolidayPrivate : public QSharedData
0022 {
0023 public:
0024     HolidayPrivate()
0025     {
0026     }
0027 
0028     HolidayPrivate(const HolidayPrivate &other)
0029         : QSharedData(other)
0030     {
0031         mObservedDate = other.mObservedDate;
0032         mDuration = other.mDuration;
0033         mName = other.mName;
0034         mDescription = other.mDescription;
0035         mCategoryList = other.mCategoryList;
0036         mDayType = other.mDayType;
0037     }
0038 
0039     QDate mObservedDate;
0040     int mDuration;
0041     QString mName;
0042     QString mDescription;
0043     QStringList mCategoryList;
0044     Holiday::DayType mDayType;
0045 };
0046 
0047 }
0048 
0049 #endif // KHOLIDAYS_HOLIDAY_P_H