20 #include "assignmentvisitor.h"
31 class AssignmentVisitor::Private
34 Private() : mSource( 0 ) {}
51 Q_ASSERT( target != 0 );
52 Q_ASSERT( source != 0 );
56 bool result = target-> accept( * this );
65 Q_ASSERT( event != 0 );
67 const Event *source = dynamic_cast<const Event* >( d->mSource );
69 kdError(5800) << "Type mismatch: source is" << d->mSource->type()
70 << "target is" << event->type();
80 Q_ASSERT( todo != 0 );
82 const Todo *source = dynamic_cast<const Todo* >( d->mSource );
84 kdError(5800) << "Type mismatch: source is" << d->mSource->type()
85 << "target is" << todo->type();
95 Q_ASSERT( journal != 0 );
97 const Journal *source = dynamic_cast<const Journal* >( d->mSource );
99 kdError(5800) << "Type mismatch: source is" << d->mSource->type()
100 << "target is" << journal->type();
110 Q_ASSERT( freebusy != 0 );
114 kdError(5800) << "Type mismatch: source is" << d->mSource->type()
115 << "target is" << freebusy->type();
|