File indexing completed on 2024-11-10 04:41:11

0001 /*
0002     SPDX-FileCopyrightText: 2007 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "subscriptiondialog.h"
0008 
0009 #include <KAboutData>
0010 #include <QApplication>
0011 #include <QCommandLineParser>
0012 #include <QObject>
0013 
0014 int main(int argc, char **argv)
0015 {
0016     QApplication app(argc, argv);
0017     app.setQuitOnLastWindowClosed(false);
0018     KAboutData aboutData(QStringLiteral("akonadi-subscriber"), QStringLiteral("Test akonadi subscriber"), QStringLiteral("0.10"));
0019     KAboutData::setApplicationData(aboutData);
0020 
0021     QCommandLineParser parser;
0022     aboutData.setupCommandLine(&parser);
0023     parser.process(app);
0024     aboutData.processCommandLine(&parser);
0025 
0026     auto dlg = new Akonadi::SubscriptionDialog();
0027     QObject::connect(dlg, &Akonadi::SubscriptionDialog::destroyed, &app, &QApplication::quit);
0028     dlg->show();
0029     return app.exec();
0030 }