KCal Library
Go to the documentation of this file.
41 class KCal::Period::Private
44 Private() : mHasDuration( false ) {}
45 Private(
const KDateTime &start,
const KDateTime &end,
bool hasDuration )
48 mHasDuration( hasDuration )
62 : d( new KCal::
Period::Private( start, end, false ) )
67 : d( new KCal::
Period::Private( start, duration.end( start ), true ) )
69 d->mDailyDuration = duration.
isDaily();
73 : d( new KCal::
Period::Private( *period.d ) )
84 return d->mStart < other.d->mStart;
90 d->mStart == other.d->mStart &&
91 d->mEnd == other.d->mEnd &&
92 d->mHasDuration == other.d->mHasDuration;
98 if ( &other ==
this ) {
118 if ( d->mHasDuration ) {
119 return Duration( d->mStart, d->mEnd,
122 return Duration( d->mStart, d->mEnd );
128 return Duration( d->mStart, d->mEnd, type );
133 return d->mHasDuration;
137 const KDateTime::Spec &newSpec )
139 if ( oldSpec.isValid() && newSpec.isValid() && oldSpec != newSpec ) {
140 d->mStart = d->mStart.toTimeSpec( oldSpec );
141 d->mStart.setTimeSpec( newSpec );
142 d->mEnd = d->mEnd.toTimeSpec( oldSpec );
143 d->mEnd.setTimeSpec( newSpec );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:29:16 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.