kexi

kexi_version.h

00001 /* This file is part of the KDE project
00002    Copyright (c) 2003-2005 Kexi Team
00003     
00004    Version information based on kofficeversion.h,
00005    Copyright (c) 2003 KOffice Team
00006 
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License as published by the Free Software Foundation; either
00010    version 2 of the License, or (at your option) any later version.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public License
00018    along with this library; see the file COPYING.LIB.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020  * Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef _KEXI_VERSION_
00024 #define _KEXI_VERSION_
00025 
00026 #ifdef CUSTOM_VERSION /* user-friendly version info */
00027 # include "custom_global.h"
00028 #else /* default */
00029 # define KEXI_APP_NAME "Kexi"
00030 #endif
00031 
00032 #ifndef KEXI_VERSION_STRING
00033 # define KEXI_VERSION_STRING "1.1.1"
00034 #endif
00035 
00036 #define KEXI_VERSION_MAJOR 1
00037 #define KEXI_VERSION_MINOR 1
00038 #define KEXI_VERSION_RELEASE 1
00039 
00040 #define KEXI_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
00041 
00042 #define KEXI_VERSION \
00043   KEXI_MAKE_VERSION(KEXI_VERSION_MAJOR,KEXI_VERSION_MINOR,KEXI_VERSION_RELEASE)
00044 
00045 #define KEXI_IS_VERSION(a,b,c) ( KEXI_VERSION >= KEXI_MAKE_VERSION(a,b,c) )
00046 
00050 namespace Kexi
00051 {
00059     KEXICORE_EXPORT unsigned int version();
00065     KEXICORE_EXPORT unsigned int versionMajor();
00071     KEXICORE_EXPORT unsigned int versionMinor();
00077     KEXICORE_EXPORT unsigned int versionRelease();
00083     KEXICORE_EXPORT const char *versionString();
00084 }
00085 
00086 /*
00087  * This is the version a part has to be only increase it if the 
00088  * interface isn't binary compatible anymore.
00089  * 
00090  * Note: update X-Kexi-PartVersion values in kexi*handler.desktop 
00091  * files everytime you are increasing this value.
00092  */
00093  
00094 #define KEXI_PART_VERSION 2
00095 
00096 #endif /* _KEXI_VERSION_ */
KDE Home | KDE Accessibility Home | Description of Access Keys