KHolidays Library
26 #include "holiday_p.h"
28 #include <KStandardDirs>
30 #include <QtCore/QDateTime>
31 #include <QtCore/QFile>
32 #include <QtCore/QSharedData>
34 using namespace KHolidays;
37 : d( new HolidayPrivate )
41 Holiday::Holiday(
const Holiday &other )
50 Holiday &Holiday::operator=(
const Holiday &other )
52 if ( &other !=
this ) {
59 bool Holiday::operator<(
const Holiday &rhs )
const
61 return d->mObservedDate < rhs.d->mObservedDate;
64 bool Holiday::operator>(
const Holiday &rhs )
const
66 return d->mObservedDate > rhs.d->mObservedDate;
69 QDate Holiday::date()
const
71 return d->mObservedDate;
74 QDate Holiday::observedStartDate()
const
76 return d->mObservedDate;
79 QDate Holiday::observedEndDate()
const
81 return d->mObservedDate.
addDays( d->mDuration - 1 );
84 int Holiday::duration()
const
94 QString Holiday::shortText()
const
99 Holiday::DayType Holiday::dayType()
const
QDate addDays(int ndays) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:00 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.