main.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <kdebug.h>
00024 #include <kaboutdata.h>
00025 #include <kcmdlineargs.h>
00026 #include <kuniqueapplication.h>
00027 #include <stdlib.h>
00028
00029 #include <mainwindow.h>
00030
00031 #include "splash.h"
00032 #include "aboutdata.h"
00033
00034 static KCmdLineOptions options[] =
00035 {
00036 KCmdLineLastOption
00037 };
00038
00039 int main( int argc, char *argv[] )
00040 {
00041 KSync::AboutData aboutData;
00042
00043 KCmdLineArgs::init( argc, argv, &aboutData );
00044 KCmdLineArgs::addCmdLineOptions( options );
00045 KUniqueApplication::addCmdLineOptions();
00046
00047 KUniqueApplication::addCmdLineOptions();
00048
00049 if( !KUniqueApplication::start() ) {
00050 kdDebug(5210) << "KitchenSync already runs." << endl;
00051 exit( 0 );
00052 };
00053
00054 KUniqueApplication a;
00055
00056 KSync::Splash *splash = new KSync::Splash;
00057 KSync::MainWindow *mainwindow = new KSync::MainWindow;
00058 delete splash;
00059 mainwindow->show();
00060 kdDebug(5210) << "exec now " << endl;
00061 a.exec();
00062 }
This file is part of the documentation for kitchensync Library Version 3.3.0.