File indexing completed on 2025-02-09 07:09:29
0001 /* 0002 * Copyright 2001 Stefan Schimanski <schimmi@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 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU General Public License 0015 * along with this program; if not, write to the Free Software 0016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #include "ktimer.h" 0020 #include <KAboutData> 0021 #include <KDBusService> 0022 #include <KLocalizedString> 0023 #include <QApplication> 0024 #include <QCommandLineParser> 0025 #include <config-ktimer.h> 0026 0027 int main(int argc, char **argv) 0028 { 0029 QApplication app(argc, argv); 0030 KLocalizedString::setApplicationDomain(QByteArrayLiteral("ktimer")); 0031 KAboutData aboutData(QStringLiteral("ktimer"), 0032 i18n("KTimer"), 0033 QStringLiteral(KTIMER_VERSION), 0034 i18n("KDE Timer"), 0035 KAboutLicense::GPL, 0036 i18n("(c) 2001, Stefan Schimanski"), 0037 QStringLiteral("https://apps.kde.org/ktimer")); 0038 aboutData.addAuthor(i18n("Stefan Schimanski"), QString(), QStringLiteral("schimmi@kde.org")); 0039 QCommandLineParser parser; 0040 KAboutData::setApplicationData(aboutData); 0041 aboutData.setupCommandLine(&parser); 0042 parser.process(app); 0043 aboutData.processCommandLine(&parser); 0044 0045 app.setQuitOnLastWindowClosed(false); 0046 KDBusService service; 0047 0048 auto timer = new KTimerPref; 0049 timer->show(); 0050 0051 return app.exec(); 0052 }