1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/*
SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "individualmaildialog.h"
#include <KGuiItem>
#include <QApplication>
using namespace IncidenceEditorNG;
int main(int argc, char **argv)
{
QApplication app(argc, argv);
KCalendarCore::Attendee::List attendees;
KGuiItem buttonYes = KGuiItem(QStringLiteral("Send Email"));
KGuiItem buttonNo = KGuiItem(QStringLiteral("Do not send"));
KCalendarCore::Attendee attendee1(QStringLiteral("test1"), QStringLiteral("test1@example.com"));
KCalendarCore::Attendee attendee2(QStringLiteral("test2"), QStringLiteral("test2@example.com"));
KCalendarCore::Attendee attendee3(QStringLiteral("test3"), QStringLiteral("test3@example.com"));
attendees << attendee1 << attendee2 << attendee3;
IndividualMailDialog dialog(QStringLiteral("title"), attendees, buttonYes, buttonNo, nullptr);
dialog.show();
return app.exec();
}
|