korganizer

main.cpp
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 1997-1999 Preston Brown <pbrown@kde.org>
5  Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of TQt, and distribute the resulting executable,
23  without including the source code for TQt in the source distribution.
24 */
25 
26 #include "koapp.h"
27 #include "aboutdata.h"
28 
29 #include <tdeglobal.h>
30 #include <kdebug.h>
31 #include <tdeaboutdata.h>
32 #include <tdecmdlineargs.h>
33 #include <tdelocale.h>
34 
35 #include "korganizer.h"
36 #include "korganizer_options.h"
37 
38 int main ( int argc, char **argv )
39 {
40  KOrg::AboutData aboutData;
41 
42  TDECmdLineArgs::init( argc, argv, &aboutData );
43  TDECmdLineArgs::addCmdLineOptions( korganizer_options );
44  TDEUniqueApplication::addCmdLineOptions();
45 
46  if ( !KOrganizerApp::start() ) return 0;
47 
48  KOrganizerApp app;
49 
50  TDEGlobal::locale()->insertCatalogue( "libkcal" );
51  TDEGlobal::locale()->insertCatalogue( "libtdepim" );
52  TDEGlobal::locale()->insertCatalogue( "kdgantt" );
53 
54  if ( app.isRestored() ) {
55  RESTORE( KOrganizer )
56  }
57 
58  return app.exec();
59 }
This is the main class for KOrganizer.
Definition: korganizer.h:66