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
00024
00025
00026
00027
00028
00029
00030
00031 #include <stdlib.h>
00032 #include <kdebug.h>
00033
00034 #include <klocale.h>
00035 #include <kcmdlineargs.h>
00036 #include <kaboutdata.h>
00037 #include <kstartupinfo.h>
00038
00039 #include "alarmapp.h"
00040
00041 static const char kalarmdVersion[] = "3.3";
00042 static const KCmdLineOptions options[] =
00043 {
00044 { "login", I18N_NOOP("Application is being auto-started at KDE session start"), 0L },
00045 { 0L, 0L, 0L }
00046 };
00047
00048 int main(int argc, char **argv)
00049 {
00050 KAboutData aboutData("kalarmd", I18N_NOOP("Alarm Daemon"),
00051 kalarmdVersion, I18N_NOOP("KOrganizer/KAlarm Alarm Daemon"), KAboutData::License_GPL,
00052 "(c) 1997-1999 Preston Brown\n(c) 2000-2001 Cornelius Schumacher\n(c) 2001 David Jarvie", 0L,
00053 "http://korganizer.kde.org");
00054 aboutData.addAuthor("Cornelius Schumacher",I18N_NOOP("Maintainer"),
00055 "schumacher@kde.org");
00056 aboutData.addAuthor("David Jarvie",I18N_NOOP("KAlarm Author"),
00057 "software@astrojar.org.uk");
00058 aboutData.addAuthor("Preston Brown",I18N_NOOP("Original Author"),
00059 "pbrown@kde.org");
00060
00061 KCmdLineArgs::init(argc,argv,&aboutData);
00062 KCmdLineArgs::addCmdLineOptions(options);
00063 KUniqueApplication::addCmdLineOptions();
00064 KStartupInfo::disableAutoAppStartedSending();
00065
00066 if (!AlarmApp::start())
00067 exit(0);
00068
00069 AlarmApp app;
00070
00071 return app.exec();
00072 }
This file is part of the documentation for kalarmd Library Version 3.3.2.