korgacmain.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 #include <stdlib.h>
00030
00031 #include <kdebug.h>
00032 #include <klocale.h>
00033 #include <kcmdlineargs.h>
00034 #include <kaboutdata.h>
00035 #include <kuniqueapplication.h>
00036
00037 #include "koalarmclient.h"
00038
00039 class MyApp : public KUniqueApplication
00040 {
00041 public:
00042 MyApp() : mClient( 0 ) {}
00043 int newInstance()
00044 {
00045
00046 if (mClient) return 0;
00047
00048
00049
00050 mClient = new KOAlarmClient;
00051
00052 return 0;
00053 }
00054 private:
00055 KOAlarmClient *mClient;
00056 };
00057
00058
00059 static const char* korgacVersion = "0.9";
00060 static const KCmdLineOptions options[] =
00061 {
00062 {0L,0L,0L}
00063 };
00064
00065 int main(int argc, char **argv)
00066 {
00067 KLocale::setMainCatalogue("kalarmdgui");
00068 KAboutData aboutData("korgac", I18N_NOOP("KOrganizer Alarm Client"),
00069 korgacVersion, I18N_NOOP("KOrganizer Alarm Client"), KAboutData::License_GPL,
00070 "(c) 2001 Cornelius Schumacher\n"
00071 "(c) 2001 David Jarvie <software@astrojar.org.uk>",
00072 0, "http://pim.kde.org");
00073 aboutData.addAuthor("Cornelius Schumacher",I18N_NOOP("Maintainer"),
00074 "schumacher@kde.org");
00075 aboutData.addAuthor("David Jarvie",0,
00076 "software@astrojar.org.uk");
00077
00078 KCmdLineArgs::init(argc,argv,&aboutData);
00079 KCmdLineArgs::addCmdLineOptions(options);
00080 KUniqueApplication::addCmdLineOptions();
00081
00082 if (!MyApp::start())
00083 exit(0);
00084
00085 MyApp app;
00086
00087 return app.exec();
00088 }
This file is part of the documentation for kdelibs Version 3.1.4.