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.
56 lines
2.1 KiB
56 lines
2.1 KiB
15 years ago
|
/***************************************************************************
|
||
|
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();
|
||
|
}
|