kexi

global.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003-2006 Jaroslaw Staniek <js@iidea.pl>
00003 
00004    This program is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KEXIDB_GLOBAL_H
00021 #define KEXIDB_GLOBAL_H
00022 
00023 #include <kexidb/kexidb_export.h>
00024 #include <qstring.h>
00025 
00026 //global public definitions
00027 
00035 #define KEXIDB_VERSION_MAJOR 1
00036 #define KEXIDB_VERSION_MINOR 8
00037 
00039 #define KEXIDB_VERSION KexiDB::DatabaseVersionInfo(KEXIDB_VERSION_MAJOR, KEXIDB_VERSION_MINOR)
00040 
00098 namespace KexiDB {
00099 
00100 #define KexiDBDbg  kdDebug(44000)   
00101 #define KexiDBDrvDbg kdDebug(44001) 
00102 #define KexiDBWarn  kdWarning(44000)
00103 #define KexiDBDrvWarn kdWarning(44001)
00104 #define KexiDBFatal kdFatal(44000)
00105 
00108 class KEXI_DB_EXPORT DatabaseVersionInfo
00109 {
00110     public:
00111         DatabaseVersionInfo();
00112         DatabaseVersionInfo(uint majorVersion, uint minorVersion);
00113 
00115         uint major;
00116 
00118         uint minor;
00119 };
00120 
00122 KEXI_DB_EXPORT DatabaseVersionInfo version();
00123 
00125 class KEXI_DB_EXPORT ServerVersionInfo
00126 {
00127     public:
00128         ServerVersionInfo();
00129 
00131         void clear();
00132 
00134         uint major;
00135 
00137         uint minor;
00138 
00140         uint release;
00141 
00143         QString string;
00144 };
00145 
00147 enum ObjectTypes {
00148     UnknownObjectType = -1, 
00149     AnyObjectType = 0,      
00150     TableObjectType = 1,
00151     QueryObjectType = 2,
00152     LastObjectType = 2, //ALWAYS UPDATE THIS
00153 
00154     KexiDBSystemTableObjectType = 128,
00155 
00156 
00157     IndexObjectType = 256 
00158 };
00159 
00160 }
00161 
00162 #ifndef futureI18n
00163 # define futureI18n QString
00164 # define futureI18n2(a,b) QString(b)
00165 #endif
00166 
00167 #ifndef FUTURE_I18N_NOOP
00168 # define FUTURE_I18N_NOOP(x) (x)
00169 #endif
00170 
00171 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys