File indexing completed on 2024-04-28 07:51:49
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("kiriki"); 0026 KAboutData about(QStringLiteral("kiriki"), i18n("Kiriki"), 0027 QStringLiteral(KIRIKI_VERSION_STRING), 0028 i18n("A Yahtzee dice game by KDE"), 0029 KAboutLicense::GPL, 0030 i18n("© 2005-2007 Albert Astals Cid"), 0031 QString(), 0032 QStringLiteral("https://apps.kde.org/kiriki")); 0033 about.addAuthor(i18n("Albert Astals Cid"), QString(), QStringLiteral("aacid@kde.org")); 0034 0035 KAboutData::setApplicationData(about); 0036 QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kiriki"))); 0037 0038 KCrash::initialize(); 0039 0040 QCommandLineParser parser; 0041 about.setupCommandLine(&parser); 0042 parser.process(app); 0043 about.processCommandLine(&parser); 0044 0045 KDBusService service; 0046 kiriki *w = new kiriki(); 0047 w->show(); 0048 return app.exec(); 0049 }