File indexing completed on 2024-05-12 04:03:07

0001 /*
0002     SPDX-FileCopyrightText: 2007-2008 Fela Winkelmolen <fela.kde@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 // own
0008 #include "mainwindow.h"
0009 #include "kbreakout_version.h"
0010 // KF
0011 #include <KAboutData>
0012 #include <KCrash>
0013 #include <KLocalizedString>
0014 #include <KDBusService>
0015 // Qt
0016 #include <QApplication>
0017 #include <QCommandLineParser>
0018 
0019 int main(int argc, char *argv[])
0020 {
0021     QApplication app(argc, argv);
0022 
0023     KLocalizedString::setApplicationDomain(QByteArrayLiteral("kbreakout"));
0024 
0025     KAboutData aboutData(QStringLiteral("kbreakout"), i18n("KBreakOut"), QStringLiteral(KBREAKOUT_VERSION_STRING));
0026     aboutData.setShortDescription(i18n("A Breakout like game by KDE"));
0027     aboutData.setLicense(KAboutLicense::GPL);
0028     aboutData.setCopyrightStatement(i18n("(c) 2007-2008 Fela Winkelmolen"));
0029     aboutData.addAuthor(i18n("Fela Winkelmolen"),
0030                         i18n("original author and maintainer"),
0031                         QStringLiteral("fela.kde@gmail.com"));
0032     aboutData.addAuthor(i18n("Eugene Trounev"),
0033                         i18n("artwork"),
0034                         QStringLiteral("eugene.trounev@gmail.com"));
0035     aboutData.addAuthor(i18n("Sean Wilson"),
0036                         i18n("artwork"),
0037                         QStringLiteral("suseux@gmail.com"));
0038     aboutData.addCredit(i18n("Lorenzo Bonomi"),
0039                         i18n("testing"),
0040                         QStringLiteral("lorenzo.bonomi@hotmail.it"));
0041     aboutData.addCredit(i18n("Brian Croom"),
0042                         i18n("port to KGameRenderer"),
0043                         QStringLiteral("brian.s.croom@gmail.com"));
0044     aboutData.addCredit(i18n("Viranch Mehta"),
0045                         i18n("port to QtQuick"),
0046                         QStringLiteral("viranch.mehta@gmail.com"));
0047     aboutData.setHomepage(QStringLiteral("https://apps.kde.org/kbreakout"));
0048 
0049     KAboutData::setApplicationData(aboutData);
0050     app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kbreakout")));
0051 
0052     KCrash::initialize();
0053 
0054     QCommandLineParser parser;
0055     aboutData.setupCommandLine(&parser);
0056     parser.process(app);
0057     aboutData.processCommandLine(&parser);
0058 
0059     KDBusService service;
0060 
0061     MainWindow *window = new MainWindow();
0062     Q_UNUSED(window);
0063 
0064     return app.exec();
0065 }
0066