1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QLIBRARYINFO_H
5#define QLIBRARYINFO_H
6
7#include <QtCore/qstring.h>
8#include <QtCore/qdatetime.h>
9#include <QtCore/qversionnumber.h>
10
11QT_BEGIN_NAMESPACE
12
13class Q_CORE_EXPORT QLibraryInfo
14{
15public:
16 static const char *build() noexcept;
17
18 static bool isDebugBuild() noexcept Q_DECL_CONST_FUNCTION;
19
20#ifndef QT_BOOTSTRAPPED
21 static QVersionNumber version() noexcept Q_DECL_CONST_FUNCTION;
22#endif
23
24 enum LibraryPath {
25 PrefixPath = 0,
26 DocumentationPath,
27 HeadersPath,
28 LibrariesPath,
29 LibraryExecutablesPath,
30 BinariesPath,
31 PluginsPath,
32 QmlImportsPath,
33 Qml2ImportsPath = QmlImportsPath,
34 ArchDataPath,
35 DataPath,
36 TranslationsPath,
37 ExamplesPath,
38 TestsPath,
39 // Insert new values above this line
40 // Please read the comments in qconfig.cpp.in before adding
41 SettingsPath = 100
42 };
43 static QString path(LibraryPath p);
44#if QT_DEPRECATED_SINCE(6, 0)
45 using LibraryLocation = LibraryPath;
46 QT_DEPRECATED_VERSION_X_6_0("Use path()")
47 static QString location(LibraryLocation location)
48 { return path(p: location); }
49#endif
50 static QStringList platformPluginArguments(const QString &platformName);
51
52private:
53 QLibraryInfo();
54};
55
56QT_END_NAMESPACE
57
58#endif // QLIBRARYINFO_H
59

source code of qtbase/src/corelib/global/qlibraryinfo.h