File indexing completed on 2024-11-10 04:40:11
0001 /* 0002 SPDX-FileCopyrightText: 2008 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "firstrun_p.h" 0008 0009 #include <KAboutData> 0010 #include <QApplication> 0011 #include <QCommandLineParser> 0012 0013 int main(int argc, char **argv) 0014 { 0015 QApplication app(argc, argv); 0016 0017 KAboutData aboutData(QStringLiteral("akonadi-firstrun"), QStringLiteral("Test akonadi-firstrun"), QStringLiteral("0.10")); 0018 KAboutData::setApplicationData(aboutData); 0019 0020 QCommandLineParser parser; 0021 aboutData.setupCommandLine(&parser); 0022 parser.process(app); 0023 aboutData.processCommandLine(&parser); 0024 0025 auto f = new Akonadi::Firstrun(); 0026 QObject::connect(f, &Akonadi::Firstrun::destroyed, &app, &QApplication::quit); 0027 app.exec(); 0028 }