backport 1145339: no error box spam
[kdepim.git] / kmailcvt / main.cpp
blob54a91955c97886ebd5170c495f7da4e5d7dd734b
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 <kcmdlineargs.h>
19 #include <kaboutdata.h>
20 #include <klocale.h>
22 #include "kmailcvt.h"
24 int main(int argc, char *argv[])
26 KLocale::setMainCatalog("kmailcvt");
28 KAboutData aboutData( "kmailcvt", 0, ki18n("KMailCVT"),
29 "3", ki18n("Mail Import Tool"), KAboutData::License_GPL_V2,
30 ki18n("Copyright © 2000–2010 KMailCVT authors"));
31 aboutData.addAuthor(ki18n("Hans Dijkema"),ki18n("Original author"), "kmailcvt@hum.org");
32 aboutData.addAuthor(ki18n("Danny Kukawka"), ki18n("Maintainer & New filters"), "danny.kukawka@web.de");
33 aboutData.addAuthor(ki18n("Laurence Anderson"), ki18n("New GUI & cleanups"), "l.d.anderson@warwick.ac.uk");
34 aboutData.addCredit(ki18n("Daniel Molkentin"), ki18n("New GUI & cleanups"), "molkentin@kde.org");
35 aboutData.addCredit(ki18n("Matthew James Leach"), ki18n("Port to Akonadi"), "matthew@theleachfamily.co.uk");
37 KCmdLineArgs::init( argc, argv, &aboutData );
39 KCmdLineOptions options;
40 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
42 KApplication a;
43 KMailCVT *kmailcvt = new KMailCVT();
44 a.setTopWidget(kmailcvt);
45 kmailcvt->show();
46 int ret = a.exec();
47 delete kmailcvt;
48 return ret;