1/*
2 This file is part of the KDE Libraries
3
4 SPDX-FileCopyrightText: 2016 David Edmundson <davidedmundson@kde.org>
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 */
19namespace 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 */
26KCOREADDONS_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 */
41KCOREADDONS_EXPORT unsigned int version();
42}
43
44#endif
45

source code of kcoreaddons/src/lib/kcoreaddons.h