00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00082 #ifdef HAS_KDE
00083 #include <kapplication.h>
00084 #include <kcmdlineargs.h>
00085 #include <kaboutdata.h>
00086 #else
00087 #include <qapplication.h>
00088 #endif
00089 #include "mainwindowimpl.h"
00090 #include "global.h"
00091 #include <qsqlquery.h>
00092 #include <qurl.h>
00093 #include <qmime.h>
00094
00095 #include <kglobal.h>
00096 #include <kstandarddirs.h>
00097
00098
00099 int main( int argc, char ** argv )
00100 {
00101 printf("This program is free software; you can redistribute it and/or modify\n" \
00102 "it under the terms of the GNU General Public License as published by\n" \
00103 "the Free Software Foundation; either version 2 of the License, or \n" \
00104 "(at your option) any later version. \n" \
00105 "Read the file COPYING for details. \n" \
00106 "Copyright: (C) 2003-2004 by Jan Mueller \n" \
00107 "Email: janmueller7@hotmail.com\n");
00108
00109 KAboutData about("Literature", "Literature", "0.1", "A Literature Database", KAboutData::License_GPL, "(C) Jan Müller 1999-2003 ");
00110 KCmdLineArgs::init(argc, argv, &about);
00111 KApplication a( argc, argv );
00112
00113 KGlobal::dirs()->addResourceType("LT_pic", "share/apps/literature/pics/");
00114
00115 if ( !createConnection("qt_sql_default_connection") || !createConnection("threadConnection"))
00116 return 1;
00117
00118 MainWindowImpl *w = new MainWindowImpl;
00119
00120 w->show();
00121 a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
00122
00123 return a.exec();
00124 }