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
00038 int main(int argc, char **argv)
00039 {
00040
00041
00042 KAboutData about( QByteArray( "kshowmail" ), NULL, ki18nc( "@title application name", "KShowmail" ), QByteArray( KSHOWMAIL_VERSION ),
00043 ki18nc( "@title", "A pop3 mail checker" ),
00044 KAboutData::License_GPL, ki18nc( "@info:credit copyright statement", "(C) 2006 - 2009 Ulrich Weigelt" ), KLocalizedString(),
00045 QByteArray( "http://kshowmail.sourceforge.net" ), QByteArray( "ulrich.weigelt@gmx.de" ) );
00046
00047
00048 about.addAuthor( ki18nc( "@info:credit", "Ulrich Weigelt" ), ki18nc( "@info:credit maintainer", "maintainer" ), "ulrich.weigelt@gmx.de" );
00049 about.addAuthor( ki18nc( "@info:credit", "Eggert Ehmke" ), ki18nc( "@info:credit", "Initiator and first developer" ), "eggert.ehmke@berlin.de", "http://kshowmail.sourceforge.net" );
00050 about.addAuthor( ki18nc( "@info:credit", "Allistar Melville" ), KLocalizedString(), "allistar@silvermoon.co.nz" );
00051 about.addAuthor( ki18nc( "@info:credit", "Oleg Ivanov" ), KLocalizedString(), "saruman@unigsm.com" );
00052
00053
00054 about.setTranslator( ki18nc( "@info:credit NAME OF TRANSLATORS", "Your names" ), ki18nc( "@info:credit EMAIL OF TRANSLATORS", "Your emails" ) );
00055
00056
00057 about.addCredit( ki18nc( "@info:credit", "Scott Barninger" ), ki18nc( "@info:credit Who build the RPMs and releases they", "Release Manager") );
00058 about.addCredit( ki18nc( "@info:credit", "Luca Pedrielli" ), ki18nc( "@info:credit", "a lot of testing and italian translation") );
00059 about.addCredit( ki18nc( "@info:credit", "Elsa Andrés" ), ki18nc( "@info:credit", "spanish translation") );
00060 about.addCredit( ki18nc( "@info:credit", "Heimen Stoffels" ), ki18nc( "@info:credit", "dutch translation") );
00061 about.addCredit( ki18nc( "@info:credit", "Otmar Mak" ), ki18nc( "@info:credit", "handbook and testing") );
00062 about.addCredit( ki18nc( "@info:credit", "Tor B. Løken" ), ki18nc( "@info:credit", "norwegian translation") );
00063
00064
00065 KCmdLineArgs::init( argc, argv, &about );
00066
00067
00068 KUniqueApplication::addCmdLineOptions();
00069
00070
00071 if( KUniqueApplication::start() )
00072 {
00073
00074
00075
00076
00077
00078 UniqueApp* app = new UniqueApp();
00079
00080
00081 return app->exec();
00082 }
00083 else
00084 {
00085
00086 kWarning() << I18N_NOOP2( "@info shown if Kshowmail was started but it is already running", "KShowmail is already running!" ) << endl;
00087 }
00088
00089 return EXIT_SUCCESS;
00090 }