diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /kmailcvt/main.cpp | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmailcvt/main.cpp')
-rw-r--r-- | kmailcvt/main.cpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/kmailcvt/main.cpp b/kmailcvt/main.cpp new file mode 100644 index 000000000..aea1edde5 --- /dev/null +++ b/kmailcvt/main.cpp @@ -0,0 +1,55 @@ +/*************************************************************************** + main.cpp - description + ------------------- + begin : Wed Aug 2 11:23:04 CEST 2000 + copyright : (C) 2000 by Hans Dijkema + email : kmailcvt@hum.org + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include <kcmdlineargs.h> +#include <kaboutdata.h> +#include <dcopclient.h> + +#include "kmailcvt.h" + +static const KCmdLineOptions options[] = +{ + KCmdLineLastOption +}; + +int main(int argc, char *argv[]) +{ + KLocale::setMainCatalogue("kmailcvt"); + + KAboutData aboutData( "kmailcvt", I18N_NOOP("KMailCVT"), + "3", I18N_NOOP("KMail Import Filters"), KAboutData::License_GPL_V2, + I18N_NOOP("(c) 2000-2005, The KMailCVT developers")); + aboutData.addAuthor("Hans Dijkema",I18N_NOOP("Original author"), "kmailcvt@hum.org"); + aboutData.addAuthor("Danny Kukawka", I18N_NOOP("Maintainer & New filters"), "danny.kukawka@web.de"); + aboutData.addAuthor("Laurence Anderson", I18N_NOOP("New GUI & cleanups"), "l.d.anderson@warwick.ac.uk"); + aboutData.addCredit("Daniel Molkentin", I18N_NOOP("New GUI & cleanups"), "molkentin@kde.org"); + + KCmdLineArgs::init( argc, argv, &aboutData ); + KCmdLineArgs::addCmdLineOptions( options ); // Add our own options. + + KApplication a; + KMailCVT *kmailcvt = new KMailCVT(); + a.setMainWidget(kmailcvt); + kmailcvt->show(); + + DCOPClient *client=a.dcopClient(); + if (!client->attach()) { + return 1; + } + + return a.exec(); +} |