akonadi/kabc
main.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <kaboutdata.h>
00022 #include <kcmdlineargs.h>
00023 #include <klocale.h>
00024 #include <kuniqueapplication.h>
00025
00026 #include "mainwindow.h"
00027
00028 int main( int argc, char **argv )
00029 {
00030 KAboutData *about = new KAboutData( "kcontactmanager", 0, ki18n( "KContactManager" ),
00031 "0.1", ki18n( "The KDE Contact Management Application" ),
00032 KAboutData::License_GPL_V2,
00033 ki18n( "(c) 2007, The KDE PIM Team" ) );
00034 about->addAuthor( ki18n( "Tobias Koenig" ), ki18n( "Current maintainer" ), "tokoe@kde.org" );
00035
00036 KCmdLineArgs::init( argc, argv, about );
00037
00038 KCmdLineOptions options;
00039 KCmdLineArgs::addCmdLineOptions( options );
00040 KUniqueApplication::addCmdLineOptions();
00041
00042 if ( !KUniqueApplication::start() )
00043 exit( 0 );
00044
00045 KUniqueApplication app;
00046
00047 MainWindow *window = new MainWindow;
00048 window->show();
00049
00050 app.exec();
00051 }