File indexing completed on 2024-04-21 04:02:30
0001 /*************************************************************************** 0002 * Copyright (C) 2005 by Albert Astals Cid <aacid@kde.org> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify * 0005 * it under the terms of the GNU General Public License as published by * 0006 * the Free Software Foundation; either version 2 of the License, or * 0007 * (at your option) any later version. * 0008 ***************************************************************************/ 0009 0010 #include <KAboutData> 0011 #include <KCrash> 0012 0013 #include <KLocalizedString> 0014 #include <QApplication> 0015 #include <QCommandLineParser> 0016 #include <KDBusService> 0017 #include "kiriki.h" 0018 0019 #include "kiriki_version.h" 0020 0021 int main(int argc, char *argv[]) 0022 { 0023 QApplication app(argc, argv); 0024 0025 KLocalizedString::setApplicationDomain(QByteArrayLiteral("kiriki")); 0026 0027 KAboutData about(QStringLiteral("kiriki"), i18n("Kiriki"), 0028 QStringLiteral(KIRIKI_VERSION_STRING), 0029 i18n("A Yahtzee dice game by KDE"), 0030 KAboutLicense::GPL, 0031 i18n("© 2005-2007 Albert Astals Cid"), 0032 QString(), 0033 QStringLiteral("https://apps.kde.org/kiriki")); 0034 about.addAuthor(i18n("Albert Astals Cid"), QString(), QStringLiteral("aacid@kde.org")); 0035 0036 KAboutData::setApplicationData(about); 0037 QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kiriki"))); 0038 0039 KCrash::initialize(); 0040 0041 QCommandLineParser parser; 0042 about.setupCommandLine(&parser); 0043 parser.process(app); 0044 about.processCommandLine(&parser); 0045 0046 KDBusService service; 0047 kiriki *w = new kiriki(); 0048 w->show(); 0049 return app.exec(); 0050 }