• 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.cpp
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 #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 
KDE::versionString
const char * versionString()
Returns the KDE version as string, e.g.
Definition: kdeversion.cpp:44
KDE_VERSION_STRING
#define KDE_VERSION_STRING
Version of KDE as string, at compile time.
Definition: kdeversion.h.cmake:47
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
#define KDE_VERSION
Version of KDE as number, at compile time.
Definition: kdeversion.h.cmake:85
KDE::version
unsigned int version()
Returns the encoded number of KDE's version, see the KDE_VERSION macro.
Definition: kdeversion.cpp:24
KDE_VERSION_MAJOR
#define KDE_VERSION_MAJOR
Major version of KDE, at compile time.
Definition: kdeversion.h.cmake:54
KDE_VERSION_MINOR
#define KDE_VERSION_MINOR
Minor version of KDE, at compile time.
Definition: kdeversion.h.cmake:60
KDE_VERSION_RELEASE
#define KDE_VERSION_RELEASE
Release version of KDE, at compile time.
Definition: kdeversion.h.cmake:66
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