kexi

kexi_version.h
1/* This file is part of the KDE project
2 Copyright (c) 2003-2005 Kexi Team
3
4 Version information based on kofficeversion.h,
5 Copyright (c) 2003 KOffice Team
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21*/
22
23#ifndef _KEXI_VERSION_
24#define _KEXI_VERSION_
25
26#ifdef CUSTOM_VERSION /* user-friendly version info */
27# include "custom_global.h"
28#else /* default */
29# define KEXI_APP_NAME "Kexi"
30#endif
31
32#ifndef KEXI_VERSION_STRING
33# define KEXI_VERSION_STRING "1.1.3"
34#endif
35
36#define KEXI_VERSION_MAJOR 1
37#define KEXI_VERSION_MINOR 1
38#define KEXI_VERSION_RELEASE 3
39
40#define KEXI_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
41
42#define KEXI_VERSION \
43 KEXI_MAKE_VERSION(KEXI_VERSION_MAJOR,KEXI_VERSION_MINOR,KEXI_VERSION_RELEASE)
44
45#define KEXI_IS_VERSION(a,b,c) ( KEXI_VERSION >= KEXI_MAKE_VERSION(a,b,c) )
46
50namespace Kexi
51{
59 KEXICORE_EXPORT unsigned int version();
65 KEXICORE_EXPORT unsigned int versionMajor();
71 KEXICORE_EXPORT unsigned int versionMinor();
77 KEXICORE_EXPORT unsigned int versionRelease();
83 KEXICORE_EXPORT const char *versionString();
84}
85
86/*
87 * This is the version a part has to be only increase it if the
88 * interface isn't binary compatible anymore.
89 *
90 * Note: update X-Kexi-PartVersion values in kexi*handler.desktop
91 * files every time you are increasing this value.
92 */
93
94#define KEXI_PART_VERSION 2
95
96#endif /* _KEXI_VERSION_ */
Namespace for general Kexi functions.
Definition kexi.h:38
KEXICORE_EXPORT unsigned int versionMinor()
Returns the minor number of Kexi's version, e.g.
KEXICORE_EXPORT const char * versionString()
Returns the Kexi version as string, e.g.
KEXICORE_EXPORT unsigned int versionRelease()
Returns the release of Kexi's version, e.g.
KEXICORE_EXPORT unsigned int version()
Returns the encoded number of Kexi's version, see the KEXI_VERSION macro.
KEXICORE_EXPORT unsigned int versionMajor()
Returns the major number of Kexi's version, e.g.