KCal::IncidenceBase::Visitor Class Reference

#include <incidencebase.h>

Inheritance diagram for KCal::IncidenceBase::Visitor:
KCal::AssignmentVisitor KCal::ComparisonVisitor KCal::Incidence::AddSubResourceVisitor< T > KCal::Incidence::AddVisitor< T > KCal::Incidence::DeleteVisitor< T >

Public Member Functions

virtual ~Visitor ()
 
virtual bool visit (Event *)
 
virtual bool visit (Todo *)
 
virtual bool visit (Journal *)
 
virtual bool visit (FreeBusy *)
 

Protected Member Functions

 Visitor ()
 

Detailed Description

This class provides the interface for a visitor of calendar components.

It serves as base class for concrete visitors, which implement certain actions on calendar components. It allows to add functions, which operate on the concrete types of calendar components, without changing the calendar component classes.

Definition at line 54 of file incidencebase.h.

Constructor & Destructor Documentation

◆ ~Visitor()

virtual KCal::IncidenceBase::Visitor::~Visitor ( )
inlinevirtual

Destruct Incidence::Visitor.

Definition at line 58 of file incidencebase.h.

◆ Visitor()

KCal::IncidenceBase::Visitor::Visitor ( )
inlineprotected

Constructor is protected to prevent direct creation of visitor base class.

Definition at line 83 of file incidencebase.h.

Member Function Documentation

◆ visit() [1/4]

virtual bool KCal::IncidenceBase::Visitor::visit ( Event )
inlinevirtual

Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on an Event object.

Reimplemented in KCal::ComparisonVisitor, KCal::AssignmentVisitor, KCal::Incidence::DeleteVisitor< T >, KCal::Incidence::AddSubResourceVisitor< T >, and KCal::Incidence::AddVisitor< T >.

Definition at line 64 of file incidencebase.h.

◆ visit() [2/4]

virtual bool KCal::IncidenceBase::Visitor::visit ( FreeBusy )
inlinevirtual

Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a FreeBusy object.

Reimplemented in KCal::ComparisonVisitor, and KCal::AssignmentVisitor.

Definition at line 79 of file incidencebase.h.

◆ visit() [3/4]

virtual bool KCal::IncidenceBase::Visitor::visit ( Journal )
inlinevirtual

Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on an Journal object.

Reimplemented in KCal::ComparisonVisitor, KCal::AssignmentVisitor, KCal::Incidence::DeleteVisitor< T >, KCal::Incidence::AddSubResourceVisitor< T >, and KCal::Incidence::AddVisitor< T >.

Definition at line 74 of file incidencebase.h.

◆ visit() [4/4]

virtual bool KCal::IncidenceBase::Visitor::visit ( Todo )
inlinevirtual

Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a Todo object.

Reimplemented in KCal::ComparisonVisitor, KCal::AssignmentVisitor, KCal::Incidence::DeleteVisitor< T >, KCal::Incidence::AddSubResourceVisitor< T >, and KCal::Incidence::AddVisitor< T >.

Definition at line 69 of file incidencebase.h.


The documentation for this class was generated from the following file: