KCalendarCore

visitor.h
1 /*
2  This file is part of the kcalcore library.
3 
4  SPDX-FileCopyrightText: 2001-2003 Cornelius Schumacher <[email protected]>
5  SPDX-FileCopyrightText: 2003-2004 Reinhold Kainhofer <[email protected]>
6  SPDX-FileCopyrightText: 2005 Rafal Rzepecki <[email protected]>
7  SPDX-FileCopyrightText: 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
8  SPDX-FileContributor: Alvaro Manera <[email protected]>
9 
10  SPDX-License-Identifier: LGPL-2.0-or-later
11 */
12 
13 #ifndef KCALCORE_VISITOR_H
14 #define KCALCORE_VISITOR_H
15 
16 #include "event.h"
17 #include "journal.h"
18 #include "todo.h"
19 #include "freebusy.h"
20 
21 namespace KCalendarCore
22 {
23 
31 class KCALENDARCORE_EXPORT Visitor //krazy:exclude=dpointer
32 {
33 public:
35  virtual ~Visitor();
36 
42  virtual bool visit(const Event::Ptr &event);
43 
49  virtual bool visit(const Todo::Ptr &todo);
50 
56  virtual bool visit(const Journal::Ptr &journal);
57 
63  virtual bool visit(const FreeBusy::Ptr &freebusy);
64 
65 protected:
70  Visitor();
71 };
72 
73 } // end namespace
74 
75 #endif
This class provides the interface for a visitor of calendar components.
Definition: visitor.h:31
This file is part of the API for handling calendar data and defines the Todo class.
This file is part of the API for handling calendar data and defines the FreeBusy class.
This file is part of the API for handling calendar data and defines the Journal class.
This file is part of the API for handling calendar data and defines the Event class.
Namespace for all KCalendarCore types.
Definition: alarm.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Dec 3 2020 22:51:45 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.