00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <kapplication.h>
00020 #include <kaboutdata.h>
00021 #include <kcmdlineargs.h>
00022 #include <KDE/KLocale>
00023 #include <kuniqueapplication.h>
00024 #include <kdebug.h>
00025
00026
00027 #include "kshowmail.h"
00028 #include "uniqueapp.h"
00029 #include "buildConfig.h"
00030
00031 static const char description[] = I18N_NOOP("A pop3 mail checker");
00032
00033
00034 static const char version[] = KSHOWMAIL_VERSION;
00035
00042 int main(int argc, char **argv)
00043 {
00044
00045 KAboutData about( "kshowmail", 0, ki18n( "KShowmail" ), version, ki18n( description ),
00046 KAboutData::License_GPL, ki18n("(C) 2000 - 2005 Eggert Ehmke\n(C) 2006 - 2009 Ulrich Weigelt"), KLocalizedString(),
00047 "http://kshowmail.sourceforge.net", "ulrich.weigelt@gmx.de");
00048
00049
00050 about.addAuthor( ki18n( "Eggert Ehmke" ), ki18n( "Initiator and first developer" ), "eggert.ehmke@berlin.de", "http://kshowmail.sourceforge.net" );
00051 about.addAuthor( ki18n( "Ulrich Weigelt" ), ki18n( "current developer" ), "ulrich.weigelt@gmx.de" );
00052 about.addAuthor( ki18n( "Allistar Melville" ), KLocalizedString(), "allistar@silvermoon.co.nz" );
00053 about.addAuthor( ki18n( "Oleg Ivanov" ), KLocalizedString(), "saruman@unigsm.com" );
00054
00055
00056 about.setTranslator( ki18nc( "NAME OF TRANSLATORS", "Your names" ), ki18nc( "EMAIL OF TRANSLATORS", "Your emails" ) );
00057
00058
00059 KCmdLineArgs::init( argc, argv, &about );
00060
00061
00062 KUniqueApplication::addCmdLineOptions();
00063
00064
00065 if( KUniqueApplication::start() )
00066 {
00067
00068
00069
00070
00071
00072 UniqueApp* app = new UniqueApp();
00073
00074
00075 return app->exec();
00076 }
00077 else
00078 {
00079
00080 kWarning() << I18N_NOOP( "KShowmail is already running!" ) << endl;
00081 }
00082
00083 return EXIT_SUCCESS;
00084 }