KCalendarCore::Visitor
#include <visitor.h>
Public Member Functions | |
virtual | ~Visitor () |
virtual bool | visit (const Event::Ptr &event) |
virtual bool | visit (const FreeBusy::Ptr &freebusy) |
virtual bool | visit (const Journal::Ptr &journal) |
virtual bool | visit (const Todo::Ptr &todo) |
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.
Constructor & Destructor Documentation
◆ ~Visitor()
|
virtual |
Destruct Incidence::Visitor.
Definition at line 21 of file visitor.cpp.
◆ Visitor()
|
protected |
Constructor is protected to prevent direct creation of visitor base class.
Definition at line 17 of file visitor.cpp.
Member Function Documentation
◆ visit() [1/4]
|
virtual |
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on an Event object.
- Parameters
-
event is a pointer to a valid Event object.
Definition at line 25 of file visitor.cpp.
◆ visit() [2/4]
|
virtual |
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a FreeBusy object.
- Parameters
-
freebusy is a pointer to a valid FreeBusy object.
Definition at line 43 of file visitor.cpp.
◆ visit() [3/4]
|
virtual |
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on an Journal object.
- Parameters
-
journal is a pointer to a valid Journal object.
Definition at line 37 of file visitor.cpp.
◆ visit() [4/4]
|
virtual |
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a Todo object.
- Parameters
-
todo is a pointer to a valid Todo object.
Definition at line 31 of file visitor.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.