kexi

global.h
1/* This file is part of the KDE project
2 Copyright (C) 2003-2006 Jaroslaw Staniek <js@iidea.pl>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KEXIDB_GLOBAL_H
21#define KEXIDB_GLOBAL_H
22
23#include <kexidb/kexidb_export.h>
24#include <tqstring.h>
25
26//global public definitions
27
35#define KEXIDB_VERSION_MAJOR 1
36#define KEXIDB_VERSION_MINOR 8
37
39#define KEXIDB_VERSION KexiDB::DatabaseVersionInfo(KEXIDB_VERSION_MAJOR, KEXIDB_VERSION_MINOR)
40
98namespace KexiDB {
99
100#define KexiDBDbg kdDebug(44000)
101#define KexiDBDrvDbg kdDebug(44001)
102#define KexiDBWarn kdWarning(44000)
103#define KexiDBDrvWarn kdWarning(44001)
104#define KexiDBFatal kdFatal(44000)
105
108class KEXI_DB_EXPORT DatabaseVersionInfo
109{
110 public:
112 DatabaseVersionInfo(uint majorVersion, uint minorVersion);
113
115 uint major;
116
118 uint minor;
119};
120
122KEXI_DB_EXPORT DatabaseVersionInfo version();
123
125class KEXI_DB_EXPORT ServerVersionInfo
126{
127 public:
129
131 void clear();
132
134 uint major;
135
137 uint minor;
138
141
143 TQString string;
144};
145
150 TableObjectType = 1,
151 QueryObjectType = 2,
152 LastObjectType = 2, //ALWAYS UPDATE THIS
153
157 IndexObjectType = 256
159
160}
161
162#ifndef futureI18n
163# define futureI18n TQString
164# define futureI18n2(a,b) TQString(b)
165#endif
166
167#ifndef FUTURE_I18N_NOOP
168# define FUTURE_I18N_NOOP(x) (x)
169#endif
170
171#endif
Contains database version information about a Kexi-compatible database. The version is stored as inte...
Definition global.h:109
uint major
Major version number, e.g. 1 for 1.8.
Definition global.h:115
uint minor
Minor version number, e.g. 8 for 1.8.
Definition global.h:118
Contains version information about a database backend.
Definition global.h:126
uint release
Release version number, e.g. 3 for 1.2.3.
Definition global.h:140
uint minor
Minor version number, e.g. 2 for 1.2.3.
Definition global.h:137
TQString string
Version string, as returned by the server.
Definition global.h:143
uint major
Major version number, e.g. 1 for 1.2.3.
Definition global.h:134
High-level database connectivity library with database backend drivers.
KEXI_DB_EXPORT DatabaseVersionInfo version()
Definition global.cpp:55
ObjectTypes
Definition global.h:147
@ UnknownObjectType
helper
Definition global.h:148
@ KexiDBSystemTableObjectType
helper, not used in storage (allows to select kexidb system tables may be or'd with TableObjectType)
Definition global.h:154
@ IndexObjectType
special
Definition global.h:157
@ AnyObjectType
helper
Definition global.h:149