lib

kofficeversion.h
1/* This file is part of the KOffice libraries
2 Copyright (c) 2003 David Faure <faure@kde.org>
3 Copyright (c) 2003 Lukas Tinkl <lukas@kde.org>
4 Copyright (c) 2004 Nicolas Goutte <goutte@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20*/
21
22#ifndef _KOFFICE_VERSION_H_
23#define _KOFFICE_VERSION_H_
24
25// Remmber to synchronize the version number with the file(s):
26// - koffice/configure.in.in
27//
28// NOT synchronized are:
29// - karbon/karbon_aboutdata.h
30//
31
32#define KOFFICE_VERSION_STRING "1.6.3"
33#define KOFFICE_VERSION_MAJOR 1
34#define KOFFICE_VERSION_MINOR 6
35#define KOFFICE_VERSION_RELEASE 3
36#define KOFFICE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
37
38#define KOFFICE_VERSION \
39 KOFFICE_MAKE_VERSION(KOFFICE_VERSION_MAJOR,KOFFICE_VERSION_MINOR,KOFFICE_VERSION_RELEASE)
40
41#define KOFFICE_IS_VERSION(a,b,c) ( KOFFICE_VERSION >= KOFFICE_MAKE_VERSION(a,b,c) )
42
46namespace KOffice
47{
56 unsigned int version();
63 unsigned int versionMajor();
70 unsigned int versionMinor();
77 unsigned int versionRelease();
83 const char *versionString();
84}
85
86#endif // _KOFFICE_VERSION_H_
Namespace for general KOFFICE functions.
const char * versionString()
Returns the KOffice version as string, e.g.
unsigned int versionMajor()
Returns the major number of KOffice's version, e.g.
unsigned int versionMinor()
Returns the minor number of KOffice's version, e.g.
unsigned int version()
Returns the encoded number of KOffice's version, see the KOFFICE_VERSION macro.
unsigned int versionRelease()
Returns the release of KOffice's version, e.g.