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(); virtual bool accept(Visitor &) Accept IncidenceVisitor.
This class provides a Todo in the sense of RFC2445.
This class provides the base class common to all calendar components.
This class provides an Event in the sense of RFC2445.
bool assign(IncidenceBase *target, const IncidenceBase *source) Assigns the incidence referenced by source to the incidence referenced by target, first ensuring that...
AssignmentVisitor() Creates a visitor instance.
This class provides a Journal in the sense of RFC2445.
Namespace KCal is for global classes, objects and/or functions in libkcal.
virtual ~AssignmentVisitor() Destroys the instance.
virtual bool visit(Event *event) Tries to assign to the given event, using the source passed to assign().
This class provides information about free/busy time of a calendar user.
|