00001 /* 00002 * Linux Advanced Business Enterprise Management System 00003 * 00004 * 00005 * File name....... : qlabapplication.h 00006 * File version.... : 1.2.8 00007 * Revision Date... : Mon Feb 02 2004 00008 * 00009 * File Description : Main Application Frame Starter 00010 * 00011 * Author.......... : DJ Anubis 00012 * Copyright....... : (C) 2001-2004 by DJ Anubis 00013 * Email .......... : labproject@free.fr 00014 * 00015 * License : 00016 * Please read the license file in doc directory. 00017 * 1. Lab Public License. 00018 * You should have received a copy of the Lab Public License with this package. 00019 * If this is not the case, you can read it or download it at: 00020 * http://labproject.free.fr 00021 * 2. Q Public License. 00022 * Conformant to Trolltech QPL license. 00023 * 3. GNU General Public License. 00024 * Reserved for free projects. 00025 * 4. Commercial license. 00026 * Recommanded if your code is not distributed under one of the 3 models above. 00027 * 00028 * Read the license FAQ in doc directory. 00029 * 00030 * Comments: 00031 * This version adds encryption parameters for setup, a new i18n design 00032 * preliminary support for FPT format for setup encodings, 00033 * a better RCM engine. 00034 * Now enforces the /opt/lab install path. 00035 * 00036 */ 00037 00038 #ifndef QLABAPPLICATION_H 00039 #define QLABAPPLICATION_H 00040 00041 #include <qobject.h> 00042 #include <qvariant.h> 00043 #include <qapplication.h> 00044 00045 class QlabApplication ; 00046 class QlabDatabaseCashboxClient ; 00047 00048 extern Q_EXPORT QlabApplication * labApp ; 00049 extern Q_EXPORT QlabDatabaseCashboxClient * LabUser ; 00050 extern Q_EXPORT QString appname ; 00051 00052 00053 00054 class Q_EXPORT QlabApplication : public QApplication 00055 { 00056 Q_OBJECT 00057 00058 public: 00059 QlabApplication( const QString & app, int & argc, char ** argv, bool guiEnabled = FALSE ) ; 00060 void i18n( const QString & app = 0, const QString & locale = 0, QlabApplication * a = 0 ) ; 00061 int getModuleId( const QString & module ) ; 00062 QString getLabSignature() const ; 00063 QString getLabLicense() const ; 00064 bool createConnections() ; 00065 00066 private : 00067 QString applicationName ; 00068 uint modID ; 00069 QString lsig ; 00070 QString lic ; 00071 } ; 00072 00073 00074 #endif // QLABAPPLICATION_H 00075