KCalCore Library
Go to the documentation of this file.
37 using namespace KCalCore;
44 class KCalCore::Event::Private
48 : mHasEndDate( false ),
49 mTransparency( Opaque ),
50 mMultiDayValid( false ),
53 Private(
const KCalCore::Event::Private &other )
54 : mDtEnd( other.mDtEnd ),
55 mHasEndDate( other.mHasEndDate ),
56 mTransparency( other.mTransparency ),
57 mMultiDayValid( false ),
63 Transparency mTransparency;
70 : d( new KCalCore::
Event::Private )
75 :
Incidence( other ), d( new KCalCore::
Event::Private( *other.d ) )
86 return new Event( *
this );
91 if ( &other !=
this ) {
93 const Event *e =
static_cast<const Event*
>( &other );
105 const Event *e =
static_cast<const Event*
>( &event );
108 ( !
dtEnd().isValid() && !e->
dtEnd().isValid() ) ) &&
126 d->mMultiDayValid =
false;
139 d->mMultiDayValid =
false;
173 return end.addSecs( -1 ).date();
185 return d->mHasEndDate;
191 if ( ( !spec.isValid() ) && d->mMultiDayValid ) {
196 KDateTime start, end;
198 if ( !spec.isValid() ) {
202 start =
dtStart().toTimeSpec( spec );
203 end =
dtEnd().toTimeSpec( spec );
209 if ( start != end ) {
210 end = end.addSecs( -1 );
213 const bool multi = ( start.date() != end.date() && start <= end );
216 if ( spec.isValid() ) {
217 d->mMultiDayValid =
true;
218 d->mMultiDay = multi;
224 const KDateTime::Spec &newSpec )
228 d->mDtEnd = d->mDtEnd.toTimeSpec( oldSpec );
229 d->mDtEnd.setTimeSpec( newSpec );
246 return d->mTransparency;
265 return v.
visit( incidence.staticCast<
Event>() );
281 case RoleEndRecurrenceBase:
288 if (
alarms().isEmpty() ) {
307 setDtEnd( dateTime.addSecs( duration ) );
311 kDebug() <<
"Unhandled role" << role;
329 return QLatin1String(
"application/x-vnd.akonadi.calendar.event" );
334 return QLatin1String(
"view-calendar-day" );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:24:51 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.