1// Copyright (C) 2021 The Qt Company Ltd.
2// Copyright (C) 2016 Intel Corporation.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QLIBRARYINFO_P_H
6#define QLIBRARYINFO_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of a number of Qt sources files. This header file may change from
14// version to version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include "QtCore/qlibraryinfo.h"
20#include "QtCore/private/qglobal_p.h"
21
22#if QT_CONFIG(settings)
23# include "QtCore/qsettings.h"
24#endif
25#include "QtCore/qstring.h"
26
27QT_BEGIN_NAMESPACE
28
29class Q_CORE_EXPORT QLibraryInfoPrivate final
30{
31public:
32#if QT_CONFIG(settings)
33 static QSettings *configuration();
34 static void reload();
35 static const QString *qtconfManualPath;
36#endif
37
38 struct LocationInfo
39 {
40 QString key;
41 QString defaultValue;
42 QString fallbackKey;
43 };
44
45 static LocationInfo locationInfo(QLibraryInfo::LibraryPath loc);
46
47 enum UsageMode {
48 RegularUsage,
49 UsedFromQtBinDir
50 };
51
52 static QString path(QLibraryInfo::LibraryPath p, UsageMode usageMode = RegularUsage);
53};
54
55QT_END_NAMESPACE
56
57#endif // QLIBRARYINFO_P_H
58

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