You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.2 KiB
58 lines
2.2 KiB
/***************************************************************************
|
|
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[])
|
|
{
|
|
TDELocale::setMainCatalogue("kmailcvt");
|
|
|
|
TDEAboutData aboutData( "kmailcvt", I18N_NOOP("KMailCVT"),
|
|
"3", I18N_NOOP("KMail Import Filters"), TDEAboutData::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");
|
|
|
|
TDECmdLineArgs::init( argc, argv, &aboutData );
|
|
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
|
|
|
|
TDEApplication a;
|
|
KMailCVT *kmailcvt = new KMailCVT();
|
|
a.setMainWidget(kmailcvt);
|
|
kmailcvt->show();
|
|
|
|
DCOPClient *client=a.dcopClient();
|
|
if (!client->attach()) {
|
|
delete kmailcvt;
|
|
return 1;
|
|
}
|
|
int ret = a.exec();
|
|
delete kmailcvt;
|
|
return ret;
|
|
}
|