tdecore
tdeversion.h
00001 /* This file is part of the KDE libraries 00002 Copyright (c) 2002-2005 KDE Team 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef _TDE_VERSION_H_ 00021 #define _TDE_VERSION_H_ 00022 00023 #include "tdelibs_export.h" 00024 00025 /* 00026 R <ABI VERSION> . <FEATURE REVISION> . <BUG AND SECURITY PATCH LEVEL> 00027 Initial release is always R<ABI VERSION>.0.0. 00028 BUG AND SECURITY PATCH LEVEL is always updated with a point release. 00029 FEATURE REVISION is updated when new features are introduced or existing 00030 features are significantly updated. 00031 A FEATURE REVISION release does NOT include ABI changes. 00032 A new FEATURE REVISION level always resets the BUG AND SECURITY PATCHLEVEL. 00033 A new ABI version resets both the FEATURE REVISION and BUG AND SECURITY PATCH LEVEL. 00034 */ 00035 #define TDE_VERSION_STRING "R14.0.6" 00036 #define TDE_VERSION_MAJOR 14 00037 #define TDE_VERSION_MINOR 0 00038 #define TDE_VERSION_RELEASE 6 00039 #define TDE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c)) 00040 00041 #define TDE_VERSION \ 00042 TDE_MAKE_VERSION(TDE_VERSION_MAJOR,TDE_VERSION_MINOR,TDE_VERSION_RELEASE) 00043 00044 #define KDE_IS_VERSION(a,b,c) ( TDE_VERSION >= TDE_MAKE_VERSION(a,b,c) ) 00045 00049 namespace KDE 00050 { 00059 TDECORE_EXPORT unsigned int version(); 00066 TDECORE_EXPORT unsigned int versionMajor(); 00073 TDECORE_EXPORT unsigned int versionMinor(); 00080 TDECORE_EXPORT unsigned int versionRelease(); 00086 TDECORE_EXPORT const char *versionString(); 00087 } 00088 00089 #endif // _TDE_VERSION_H_