kalarmd Library API Documentation

main.cpp

00001 /*
00002     This file is part of the KDE alarm daemon.
00003     Copyright (c) 1997-1999 Preston Brown
00004     Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
00005     Copyright (c) 2001 David Jarvie <software@astrojar.org.uk>
00006 
00007     This program is free software; you can redistribute it and/or modify
00008     it under the terms of the GNU General Public License as published by
00009     the Free Software Foundation; either version 2 of the License, or
00010     (at your option) any later version.
00011 
00012     This program is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015     GNU General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with this program; if not, write to the Free Software
00019     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020 
00021     As a special exception, permission is given to link this program
00022     with any edition of Qt, and distribute the resulting executable,
00023     without including the source code for Qt in the source distribution.
00024 */
00025 
00026 // $Id$
00027 //
00028 // KOrganizer/KAlarm alarm daemon main program
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.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 }
KDE Logo
This file is part of the documentation for kalarmd Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 25 11:18:52 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003