KCoreAddons

kcoreaddons.h
1 /*
2  This file is part of the KDE Libraries
3 
4  SPDX-FileCopyrightText: 2016 David Edmundson <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KCOREADDONS_H
10 #define KCOREADDONS_H
11 
12 #include <QString>
13 #include <kcoreaddons_export.h>
14 
15 /**
16  * @namespace KCoreAddons
17  * Provides utility functions for metadata about the KCoreAddons library.
18  */
19 namespace KCoreAddons
20 {
21 /**
22  * Returns the version number of KCoreAddons at run-time as a string (for example, "5.19.0").
23  * This may be a different version than the version the application was compiled against.
24  * @since 5.20
25  */
26 KCOREADDONS_EXPORT QString versionString();
27 
28 /**
29  * Returns a numerical version number of KCoreAddons at run-time in the form 0xMMNNPP
30  * (MM = major, NN = minor, PP = patch)
31  * This can be compared using the macro QT_VERSION_CHECK.
32  *
33  * For example:
34  * \code
35  * if (KCoreAddons::version() < QT_VERSION_CHECK(5,19,0))
36  * \endcode
37  *
38  * This may be a different version than the version the application was compiled against.
39  * @since 5.20
40  */
41 KCOREADDONS_EXPORT unsigned int version();
42 }
43 
44 #endif
KCOREADDONS_EXPORT unsigned int version()
Returns a numerical version number of KCoreAddons at run-time in the form 0xMMNNPP (MM = major...
Definition: kcoreaddons.cpp:18
KCOREADDONS_EXPORT QString versionString()
Returns the version number of KCoreAddons at run-time as a string (for example, "5.19.0").
Definition: kcoreaddons.cpp:13
Provides utility functions for metadata about the KCoreAddons library.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Apr 18 2021 23:02:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.