kexi
global.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
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,
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
|