fix show print
[kdepim.git] / korgac / korgacmain.cpp
blob6b4049d916207e032a5fb502c8430a8d35b98419
1 /*
2 This file is part of the KDE reminder agent.
4 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 As a special exception, permission is given to link this program
21 with any edition of Qt, and distribute the resulting executable,
22 without including the source code for Qt in the source distribution.
25 #include "koalarmclient.h"
26 #include "kdepim-version.h"
28 #include <kaboutdata.h>
30 #include <kdelibs4configmigrator.h>
31 #include <stdlib.h>
32 #include <QCommandLineParser>
33 #include <KDBusService>
34 #include <KLocalizedString>
35 #include <QApplication>
36 #ifdef SERIALIZER_PLUGIN_STATIC
38 Q_IMPORT_PLUGIN(akonadi_serializer_kcalcore)
39 #endif
41 int main(int argc, char **argv)
43 QApplication app(argc, argv);
44 app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
45 Kdelibs4ConfigMigrator migrate(QStringLiteral("korgac"));
47 migrate.setConfigFiles(QStringList() << QStringLiteral("korgacrc"));
48 migrate.migrate();
50 KAboutData aboutData(QStringLiteral("korgac"), i18n("KOrganizer Reminder Daemon"),
51 QStringLiteral(KDEPIM_VERSION), i18n("KOrganizer Reminder Daemon"),
52 KAboutLicense::GPL,
53 i18n("(c) 2003 Cornelius Schumacher"),
54 QString(), QStringLiteral("http://pim.kde.org"));
55 aboutData.addAuthor(i18n("Cornelius Schumacher"), i18n("Former Maintainer"),
56 QStringLiteral("schumacher@kde.org"));
57 aboutData.addAuthor(i18n("Reinhold Kainhofer"), i18n("Former Maintainer"),
58 QStringLiteral("kainhofer@kde.org"));
59 aboutData.addAuthor(i18n("Allen Winter"), i18n("Janitorial Staff"),
60 QStringLiteral("winter@kde.org"));
62 QCommandLineParser parser;
63 KAboutData::setApplicationData(aboutData);
64 parser.addVersionOption();
65 parser.addHelpOption();
66 aboutData.setupCommandLine(&parser);
67 parser.process(app);
68 aboutData.processCommandLine(&parser);
70 KDBusService service(KDBusService::Unique);
71 KOAlarmClient client;
72 //app.disableSessionManagement();
74 return app.exec();