KCalendarCore::Visitor Class
class KCalendarCore::VisitorThis class provides the interface for a visitor of calendar components. More...
Header: | #include <KCalendarCore/Visitor> |
CMake: | find_package(KF6 REQUIRED COMPONENTS CalendarCore) target_link_libraries(mytarget PRIVATE KF6::CalendarCore) |
Public Functions
virtual | ~Visitor() |
virtual bool | visit(const KCalendarCore::Event::Ptr &event) |
virtual bool | visit(const KCalendarCore::FreeBusy::Ptr &freebusy) |
virtual bool | visit(const KCalendarCore::Journal::Ptr &journal) |
virtual bool | visit(const KCalendarCore::Todo::Ptr &todo) |
Protected Functions
Visitor() |
Detailed Description
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.
Member Function Documentation
[protected]
Visitor::Visitor()
Constructor is protected to prevent direct creation of visitor base class.
[virtual noexcept]
Visitor::~Visitor()
Destruct Incidence::Visitor
[virtual]
bool Visitor::visit(const KCalendarCore::Event::Ptr &event)
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on an Event object.
event is a pointer to a valid Event object.
[virtual]
bool Visitor::visit(const KCalendarCore::FreeBusy::Ptr &freebusy)
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a FreeBusy object.
freebusy is a pointer to a valid FreeBusy object.
[virtual]
bool Visitor::visit(const KCalendarCore::Journal::Ptr &journal)
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on an Journal object.
journal is a pointer to a valid Journal object.
[virtual]
bool Visitor::visit(const KCalendarCore::Todo::Ptr &todo)
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a Todo object.
todo is a pointer to a valid Todo object.