KCalendarCore

occurrenceiterator.h
Go to the documentation of this file.
1 /*
2  This file is part of the kcalcore library.
3 
4  SPDX-FileCopyrightText: 2013 Christian Mollekopf <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
16 #ifndef KCALCORE_OCCURRENCEITERATOR_H
17 #define KCALCORE_OCCURRENCEITERATOR_H
18 
19 #include "kcalendarcore_export.h"
20 #include "incidence.h"
21 
22 namespace KCalendarCore
23 {
24 
25 class Calendar;
34 class KCALENDARCORE_EXPORT OccurrenceIterator
35 {
36 public:
41  explicit OccurrenceIterator(const Calendar &calendar,
42  const QDateTime &start = QDateTime(),
43  const QDateTime &end = QDateTime());
44 
49  OccurrenceIterator(const Calendar &calendar,
50  const KCalendarCore::Incidence::Ptr &incidence,
51  const QDateTime &start = QDateTime(),
52  const QDateTime &end = QDateTime());
54  bool hasNext() const;
55 
59  void next();
60 
64  Incidence::Ptr incidence() const;
65 
72  QDateTime occurrenceStartDate() const;
73 
80  QDateTime recurrenceId() const;
81 
82 private:
83  Q_DISABLE_COPY(OccurrenceIterator)
84  //@cond PRIVATE
85  class Private;
87  //@endcond
88 };
89 
90 } //namespace
91 
92 #endif
Represents the main calendar class.
Definition: calendar.h:119
Iterate over calendar items in a calendar.
This file is part of the API for handling calendar data and defines the Incidence 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 Sun Nov 29 2020 22:50:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.