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 #include <stdlib.h>
00026
00027 #include <qdir.h>
00028
00029 #include <kstandarddirs.h>
00030 #include <kglobal.h>
00031 #include <kdebug.h>
00032 #include <kaboutdata.h>
00033 #include <kcmdlineargs.h>
00034 #include <klocale.h>
00035
00036 #include "koapp.h"
00037 #include "version.h"
00038
00039 static const KCmdLineOptions options[] =
00040 {
00041 {"l", 0, 0},
00042 {"list", I18N_NOOP("List the events for the current day"), 0},
00043 {"s", 0, 0},
00044 {"show <numdays>", I18N_NOOP("Show a list of all events for the next <numdays>"),"1"},
00045 {"+[calendar]", I18N_NOOP("A calendar file to load"), 0},
00046 {0,0,0}
00047 };
00048
00049 int main (int argc, char **argv)
00050 {
00051 KAboutData aboutData("korganizer",I18N_NOOP("KOrganizer"),
00052 korgVersion,I18N_NOOP("A Personal Organizer for KDE"),KAboutData::License_GPL,
00053 "(c) 1997-1999 Preston Brown\n(c) 2000-2003 Cornelius Schumacher",0,
00054 "http://korganizer.kde.org");
00055 aboutData.addAuthor("Cornelius Schumacher",I18N_NOOP("Current Maintainer"),
00056 "schumacher@kde.org");
00057 aboutData.addAuthor("Preston Brown",I18N_NOOP("Original Author"),
00058 "pbrown@kde.org");
00059 aboutData.addCredit("Richard Apodaca");
00060 aboutData.addCredit("Laszlo Boloni");
00061 aboutData.addCredit("Barry Benowitz");
00062 aboutData.addCredit("Christopher Beard");
00063 aboutData.addCredit("Ian Dawes");
00064 aboutData.addCredit("Thomas Eitzenberger");
00065 aboutData.addCredit("Neil Hart");
00066 aboutData.addCredit("Declan Houlihan");
00067 aboutData.addCredit("Hans-Jürgen Husel");
00068 aboutData.addCredit("Christian Kirsch");
00069 aboutData.addCredit("Uwe Koloska");
00070 aboutData.addCredit("Glen Parker");
00071 aboutData.addCredit("Dan Pilone");
00072 aboutData.addCredit("Roman Rohr");
00073 aboutData.addCredit("Günter Schwann");
00074 aboutData.addCredit("Herwin Jan Steehouwer");
00075 aboutData.addCredit("Nick Thompson");
00076 aboutData.addCredit("Larry Wright");
00077 aboutData.addCredit("Thomas Zander");
00078 aboutData.addCredit("Fester Zigterman");
00079
00080 KCmdLineArgs::init( argc, argv, &aboutData );
00081 KCmdLineArgs::addCmdLineOptions( options );
00082 KUniqueApplication::addCmdLineOptions();
00083
00084 if (!KOrganizerApp::start())
00085 exit(0);
00086
00087 KOrganizerApp app;
00088
00089 KGlobal::locale()->insertCatalogue("libkcal");
00090 KGlobal::locale()->insertCatalogue("libkdepim");
00091
00092
00093
00094
00095 app.sessionConfig();
00096
00097
00098 return app.exec();
00099
00100 }
This file is part of the documentation for kdelibs Version 3.1.4.