File indexing completed on 2024-12-22 04:57:03

0001 /*
0002     SPDX-FileCopyrightText: 2015-2016 Krzysztof Nowicki <krissn@op.pl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KCalendarCore/Recurrence>
0010 
0011 class QXmlStreamReader;
0012 
0013 class EwsRecurrence : public KCalendarCore::Recurrence
0014 {
0015 public:
0016     EwsRecurrence();
0017     explicit EwsRecurrence(QXmlStreamReader &reader);
0018     EwsRecurrence(const EwsRecurrence &other);
0019     EwsRecurrence &operator=(const EwsRecurrence &other) = delete;
0020 
0021 private:
0022     bool readRelativeYearlyRecurrence(QXmlStreamReader &reader);
0023     bool readAbsoluteYearlyRecurrence(QXmlStreamReader &reader);
0024     bool readRelativeMonthlyRecurrence(QXmlStreamReader &reader);
0025     bool readAbsoluteMonthlyRecurrence(QXmlStreamReader &reader);
0026     bool readWeeklyRecurrence(QXmlStreamReader &reader);
0027     bool readDailyRecurrence(QXmlStreamReader &reader);
0028     bool readEndDateRecurrence(QXmlStreamReader &reader);
0029     bool readNumberedRecurrence(QXmlStreamReader &reader);
0030 
0031     bool readDow(QXmlStreamReader &reader, QBitArray &dow);
0032 };
0033 
0034 Q_DECLARE_METATYPE(EwsRecurrence)