KDECore
kdeversion.h.cmake
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (c) 2002 Simon Hausmann <hausmann@kde.org> 00003 Copyright (c) 2002 Marc Mutz <mutz@kde.org> 00004 Copyright (c) 2003 Andreas Beckermann <b_mann@gmx.de> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef KDELIBS_KDEVERSION_H 00023 #define KDELIBS_KDEVERSION_H 00024 00030 #include <kdecore_export.h> 00031 00047 #cmakedefine KDE_VERSION_STRING "@KDE_VERSION_STRING@" 00048 00054 #cmakedefine KDE_VERSION_MAJOR @KDE_VERSION_MAJOR@ 00055 00060 #cmakedefine KDE_VERSION_MINOR @KDE_VERSION_MINOR@ 00061 00066 #cmakedefine KDE_VERSION_RELEASE @KDE_VERSION_RELEASE@ 00067 00075 #define KDE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c)) 00076 00085 #define KDE_VERSION \ 00086 KDE_MAKE_VERSION(KDE_VERSION_MAJOR,KDE_VERSION_MINOR,KDE_VERSION_RELEASE) 00087 00109 #define KDE_IS_VERSION(a,b,c) ( KDE_VERSION >= KDE_MAKE_VERSION(a,b,c) ) 00110 00114 namespace KDE 00115 { 00125 KDECORE_EXPORT unsigned int version(); 00131 KDECORE_EXPORT unsigned int versionMajor(); 00137 KDECORE_EXPORT unsigned int versionMinor(); 00143 KDECORE_EXPORT unsigned int versionRelease(); 00151 KDECORE_EXPORT const char *versionString(); 00152 } 00153 00154 #endif // KDELIBS_KDEVERSION_H
KDE 4.6 API Reference