27 #include <tdeglobal.h>
29 #include <tdelocale.h>
30 #include <tdecmdlineargs.h>
31 #include <tdeaboutdata.h>
32 #include <tdeuniqueapplication.h>
34 #include "koalarmclient.h"
36 class MyApp : public TDEUniqueApplication
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 TDECmdLineOptions options[] =
62 int main( int argc, char **argv )
64 TDELocale::setMainCatalogue( "korganizer" );
65 TDEAboutData aboutData( "korgac", I18N_NOOP( "KOrganizer Reminder Daemon"),
66 korgacVersion, I18N_NOOP( "KOrganizer Reminder Daemon"),
67 TDEAboutData::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 TDECmdLineArgs::init( argc, argv, &aboutData );
76 TDECmdLineArgs::addCmdLineOptions( options );
77 TDEUniqueApplication::addCmdLineOptions();
79 if ( !MyApp::start() ) exit( 0 );
82 app.disableSessionManagement();
83 TDEGlobal::locale()->insertCatalogue( "libkcal" );
|