KDELibs4Support

kdeversion.cpp
1 /* This file is part of the KDE libraries
2  Copyright (c) 2002 Simon Hausmann <[email protected]>
3  Copyright (c) 2002 Marc Mutz <[email protected]>
4  Copyright (c) 2003 Andreas Beckermann <[email protected]>
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 #include "kdeversion.h"
23 
24 unsigned int KDE::version()
25 {
26  return KDE_VERSION;
27 }
28 
29 unsigned int KDE::versionMajor()
30 {
31  return KDE_VERSION_MAJOR;
32 }
33 
34 unsigned int KDE::versionMinor()
35 {
36  return KDE_VERSION_MINOR;
37 }
38 
39 unsigned int KDE::versionRelease()
40 {
41  return KDE_VERSION_RELEASE;
42 }
43 
44 const char *KDE::versionString()
45 {
46  return KDE_VERSION_STRING;
47 }
48 
const char * versionString()
Returns the KDE version as string, e.g.
Definition: kdeversion.cpp:44
#define KDE_VERSION_MINOR
Minor version of KDE, at compile time.
Definition: kdeversion.h:61
#define KDE_VERSION_MAJOR
Major version of KDE, at compile time.
Definition: kdeversion.h:55
The file contains macros and functions related to the KDE version.
unsigned int versionRelease()
Returns the release of KDE&#39;s version, e.g.
Definition: kdeversion.cpp:39
#define KDE_VERSION_STRING
Version of KDE as string, at compile time.
Definition: kdeversion.h:48
#define KDE_VERSION
Version of KDE as number, at compile time.
Definition: kdeversion.h:86
unsigned int versionMinor()
Returns the minor number of KDE&#39;s version, e.g.
Definition: kdeversion.cpp:34
#define KDE_VERSION_RELEASE
Release version of KDE, at compile time.
Definition: kdeversion.h:67
unsigned int versionMajor()
Returns the major number of KDE&#39;s version, e.g.
Definition: kdeversion.cpp:29
unsigned int version()
Returns the encoded number of KDE&#39;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 Sat Aug 8 2020 22:57:09 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.