SVN_SILENT made messages (.desktop file)
[kdepim.git] / kmailcvt / main.cpp
blob79aa309bb97f2a1f62c776630f80dbd623d9480e
1 /***************************************************************************
2 main.cpp - description
3 -------------------
4 begin : Wed Aug 2 11:23:04 CEST 2000
5 copyright : (C) 2000 by Hans Dijkema
6 email : kmailcvt@hum.org
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #include <kaboutdata.h>
19 #include <KLocalizedString>
20 #include <Kdelibs4ConfigMigrator>
21 #include <QCommandLineParser>
22 #include <QApplication>
23 #include "kmailcvt.h"
24 #include "kdepim-version.h"
25 #include <KDBusService>
27 int main(int argc, char *argv[])
29 Kdelibs4ConfigMigrator migrate(QStringLiteral("kmailcvt"));
30 migrate.setConfigFiles(QStringList() << QStringLiteral("kmailcvtrc"));
31 migrate.migrate();
33 QApplication app(argc, argv);
34 KLocalizedString::setApplicationDomain("kmailcvt");
36 KAboutData aboutData(QStringLiteral("kmailcvt"), i18n("KMailCVT"),
37 QStringLiteral(KDEPIM_VERSION), i18n("Mail Import Tool"), KAboutLicense::GPL_V2,
38 i18n("Copyright © 2000–2015 KMailCVT authors"));
40 aboutData.addAuthor(i18n("Laurent Montel"), i18n("Maintainer & New filter & cleanups"), QStringLiteral("montel@kde.org"));
41 aboutData.addAuthor(i18n("Hans Dijkema"), i18n("Original author"), QStringLiteral("kmailcvt@hum.org"));
42 aboutData.addAuthor(i18n("Danny Kukawka"), i18n("Previous Maintainer & New filters"), QStringLiteral("danny.kukawka@web.de"));
43 aboutData.addAuthor(i18n("Laurence Anderson"), i18n("New GUI & cleanups"), QStringLiteral("l.d.anderson@warwick.ac.uk"));
44 aboutData.addCredit(i18n("Daniel Molkentin"), i18n("New GUI & cleanups"), QStringLiteral("molkentin@kde.org"));
45 aboutData.addCredit(i18n("Matthew James Leach"), i18n("Port to Akonadi"), QStringLiteral("matthew@theleachfamily.co.uk"));
47 KAboutData::setApplicationData(aboutData);
49 QCommandLineParser parser;
50 parser.addVersionOption();
51 parser.addHelpOption();
52 aboutData.setupCommandLine(&parser);
53 parser.process(app);
54 aboutData.processCommandLine(&parser);
56 KDBusService service;
58 KMailCVT *kmailcvt = new KMailCVT();
59 kmailcvt->show();
60 int ret = app.exec();
61 delete kmailcvt;
62 return ret;