File: individualmaildialog_test.cpp

package info (click to toggle)
incidenceeditor 25.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,100 kB
  • sloc: cpp: 11,933; makefile: 17; xml: 11; sh: 3
file content (31 lines) | stat: -rw-r--r-- 1,019 bytes parent folder | download
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 const app(argc, argv);

    KCalendarCore::Attendee::List attendees;
    KGuiItem const buttonYes = KGuiItem(QStringLiteral("Send Email"));
    KGuiItem const buttonNo = KGuiItem(QStringLiteral("Do not send"));

    KCalendarCore::Attendee const attendee1(QStringLiteral("test1"), QStringLiteral("test1@example.com"));
    KCalendarCore::Attendee const attendee2(QStringLiteral("test2"), QStringLiteral("test2@example.com"));
    KCalendarCore::Attendee const attendee3(QStringLiteral("test3"), QStringLiteral("test3@example.com"));

    attendees << attendee1 << attendee2 << attendee3;

    IndividualMailDialog dialog(QStringLiteral("title"), attendees, buttonYes, buttonNo, nullptr);
    dialog.show();
    return app.exec();
}