kexi

global.cpp
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#include <kexidb/global.h>
21
22using namespace KexiDB;
23
24DatabaseVersionInfo::DatabaseVersionInfo()
25{
26 major = 0;
27 minor = 0;
28}
29
30DatabaseVersionInfo::DatabaseVersionInfo(uint majorVersion, uint minorVersion)
31{
32 major = majorVersion;
33 minor = minorVersion;
34}
35
36//------------------------
37
38ServerVersionInfo::ServerVersionInfo()
39{
40 major = 0;
41 minor = 0;
42 release = 0;
43}
44
46{
47 major = 0;
48 minor = 0;
49 release = 0;
50 string = TQString();
51}
52
53//------------------------
54
55DatabaseVersionInfo KexiDB::version() { return KEXIDB_VERSION; }
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
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
void clear()
Clears the information - integers will be set to 0 and string to null.
Definition global.cpp:45
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