File indexing completed on 2024-05-12 05:15:00

0001 /*
0002   This file is part of the kcalutils library.
0003 
0004   SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
0005 
0006   SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #pragma once
0010 
0011 #include <QObject>
0012 
0013 #include <KCalendarCore/Calendar>
0014 
0015 class IncidenceFormatterTest : public QObject
0016 {
0017     Q_OBJECT
0018 
0019 private:
0020     /* Helper functions for testDisplayViewFormat* */
0021     KCalendarCore::Calendar::Ptr loadCalendar(const QString &name);
0022     bool validateHtml(const QString &name, const QString &html);
0023     bool compareHtml(const QString &name);
0024     void cleanup(const QString &name);
0025 
0026 private Q_SLOTS:
0027     void initTestCase();
0028 
0029     void testRecurrenceString();
0030 
0031     void testErrorTemplate();
0032 
0033     void testDisplayViewFormatEvent_data();
0034     void testDisplayViewFormatEvent();
0035 
0036     void testDisplayViewFormatTodo_data();
0037     void testDisplayViewFormatTodo();
0038 
0039     void testDisplayViewFormatJournal_data();
0040     void testDisplayViewFormatJournal();
0041 
0042     void testDisplayViewFreeBusy_data();
0043     void testDisplayViewFreeBusy();
0044 
0045     void testFormatIcalInvitation_data();
0046     void testFormatIcalInvitation();
0047 };