• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • util
kdeversion.h.cmake
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (c) 2002 Simon Hausmann <hausmann@kde.org>
3  Copyright (c) 2002 Marc Mutz <mutz@kde.org>
4  Copyright (c) 2003 Andreas Beckermann <b_mann@gmx.de>
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 KDELIBS_KDEVERSION_H
23 #define KDELIBS_KDEVERSION_H
24 
30 #include <kdecore_export.h>
31 
47 #define KDE_VERSION_STRING "${KDE_VERSION_STRING}"
48 
54 #define KDE_VERSION_MAJOR ${KDE_VERSION_MAJOR}
55 
60 #define KDE_VERSION_MINOR ${KDE_VERSION_MINOR}
61 
66 #define KDE_VERSION_RELEASE ${KDE_VERSION_RELEASE}
67 
75 #define KDE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
76 
85 #define KDE_VERSION \
86  KDE_MAKE_VERSION(KDE_VERSION_MAJOR,KDE_VERSION_MINOR,KDE_VERSION_RELEASE)
87 
109 #define KDE_IS_VERSION(a,b,c) ( KDE_VERSION >= KDE_MAKE_VERSION(a,b,c) )
110 
114 namespace KDE
115 {
125  KDECORE_EXPORT unsigned int version();
131  KDECORE_EXPORT unsigned int versionMajor();
137  KDECORE_EXPORT unsigned int versionMinor();
143  KDECORE_EXPORT unsigned int versionRelease();
151  KDECORE_EXPORT const char *versionString();
152 }
153 
154 #endif // KDELIBS_KDEVERSION_H
kdecore_export.h
KDE::versionString
const char * versionString()
Returns the KDE version as string, e.g.
Definition: kdeversion.cpp:44
KDE::versionRelease
unsigned int versionRelease()
Returns the release of KDE's version, e.g.
Definition: kdeversion.cpp:39
KDE::versionMinor
unsigned int versionMinor()
Returns the minor number of KDE's version, e.g.
Definition: kdeversion.cpp:34
KDE::versionMajor
unsigned int versionMajor()
Returns the major number of KDE's version, e.g.
Definition: kdeversion.cpp:29
KDE::version
unsigned int version()
Returns the encoded number of KDE's version, see the KDE_VERSION macro.
Definition: kdeversion.cpp:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal