Inform when we can't close dialog because we are debug method
[kdepim.git] / korgac / korgacmain.cpp
blobd652e49129c6cc5a1ab2f4491e71effe0a788991
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 Kdelibs4ConfigMigrator migrate(QStringLiteral("korgac"));
46 migrate.setConfigFiles(QStringList() << QStringLiteral("korgacrc"));
47 migrate.migrate();
49 KAboutData aboutData(QStringLiteral("korgac"), i18n("KOrganizer Reminder Daemon"),
50 QStringLiteral(KDEPIM_VERSION), i18n("KOrganizer Reminder Daemon"),
51 KAboutLicense::GPL,
52 i18n("(c) 2003 Cornelius Schumacher"),
53 QString(), QStringLiteral("http://pim.kde.org"));
54 aboutData.addAuthor(i18n("Cornelius Schumacher"), i18n("Former Maintainer"),
55 QStringLiteral("schumacher@kde.org"));
56 aboutData.addAuthor(i18n("Reinhold Kainhofer"), i18n("Former Maintainer"),
57 QStringLiteral("kainhofer@kde.org"));
58 aboutData.addAuthor(i18n("Allen Winter"), i18n("Janitorial Staff"),
59 QStringLiteral("winter@kde.org"));
61 QCommandLineParser parser;
62 KAboutData::setApplicationData(aboutData);
63 parser.addVersionOption();
64 parser.addHelpOption();
65 aboutData.setupCommandLine(&parser);
66 parser.process(app);
67 aboutData.processCommandLine(&parser);
69 KDBusService service(KDBusService::Unique);
70 KOAlarmClient *client = new KOAlarmClient;
71 //ReminderDaemonApp app;
72 //app.disableSessionManagement();
74 return app.exec();