File indexing completed on 2024-05-05 05:13:51

0001 /*
0002     SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "individualmaildialog.h"
0008 
0009 #include <KGuiItem>
0010 #include <QApplication>
0011 
0012 using namespace IncidenceEditorNG;
0013 
0014 int main(int argc, char **argv)
0015 {
0016     QApplication app(argc, argv);
0017 
0018     KCalendarCore::Attendee::List attendees;
0019     KGuiItem buttonYes = KGuiItem(QStringLiteral("Send Email"));
0020     KGuiItem buttonNo = KGuiItem(QStringLiteral("Do not send"));
0021 
0022     KCalendarCore::Attendee attendee1(QStringLiteral("test1"), QStringLiteral("test1@example.com"));
0023     KCalendarCore::Attendee attendee2(QStringLiteral("test2"), QStringLiteral("test2@example.com"));
0024     KCalendarCore::Attendee attendee3(QStringLiteral("test3"), QStringLiteral("test3@example.com"));
0025 
0026     attendees << attendee1 << attendee2 << attendee3;
0027 
0028     IndividualMailDialog dialog(QStringLiteral("title"), attendees, buttonYes, buttonNo, nullptr);
0029     dialog.show();
0030     return app.exec();
0031 }