30 #include <kcmdlineargs.h>
31 #include <kaboutdata.h>
32 #include <kuniqueapplication.h>
34 #include "koalarmclient.h"
36 class MyApp : public KUniqueApplication
39 MyApp() : mClient( 0 ) {}
43 if ( mClient ) return 0;
45 mClient = new KOAlarmClient;
51 KOAlarmClient *mClient;
55 static const char korgacVersion[] = "0.9";
57 static const KCmdLineOptions options[] =
62 int main( int argc, char **argv )
64 KLocale::setMainCatalogue( "korganizer" );
65 KAboutData aboutData( "korgac", I18N_NOOP( "KOrganizer Reminder Daemon"),
66 korgacVersion, I18N_NOOP( "KOrganizer Reminder Daemon"),
67 KAboutData::License_GPL,
68 "(c) 2003 Cornelius Schumacher",
69 0, "http://pim.kde.org" );
70 aboutData.addAuthor( "Cornelius Schumacher", I18N_NOOP( "Maintainer"),
71 "schumacher@kde.org" );
72 aboutData.addAuthor( "Reinhold Kainhofer", I18N_NOOP( "Maintainer"),
73 "kainhofer@kde.org" );
75 KCmdLineArgs::init( argc, argv, &aboutData );
76 KCmdLineArgs::addCmdLineOptions( options );
77 KUniqueApplication::addCmdLineOptions();
79 if ( !MyApp::start() ) exit( 0 );
82 app.disableSessionManagement();
83 KGlobal::locale()->insertCatalogue( "libkcal" );
|