File indexing completed on 2025-01-18 10:07:27
0001
0002
0003
0004 #ifndef QLIBRARYINFO_H
0005 #define QLIBRARYINFO_H
0006
0007 #include <QtCore/qstring.h>
0008 #include <QtCore/qdatetime.h>
0009 #include <QtCore/qversionnumber.h>
0010
0011 QT_BEGIN_NAMESPACE
0012
0013 class Q_CORE_EXPORT QLibraryInfo
0014 {
0015 public:
0016 static const char *build() noexcept;
0017
0018 [[nodiscard]] static bool isDebugBuild() noexcept Q_DECL_CONST_FUNCTION;
0019 [[nodiscard]] static bool isSharedBuild() noexcept Q_DECL_CONST_FUNCTION;
0020
0021 #ifndef QT_BOOTSTRAPPED
0022 static QVersionNumber version() noexcept Q_DECL_CONST_FUNCTION;
0023 #endif
0024
0025 enum LibraryPath {
0026 PrefixPath = 0,
0027 DocumentationPath,
0028 HeadersPath,
0029 LibrariesPath,
0030 LibraryExecutablesPath,
0031 BinariesPath,
0032 PluginsPath,
0033 QmlImportsPath,
0034 Qml2ImportsPath = QmlImportsPath,
0035 ArchDataPath,
0036 DataPath,
0037 TranslationsPath,
0038 ExamplesPath,
0039 TestsPath,
0040
0041
0042 SettingsPath = 100
0043 };
0044 static QString path(LibraryPath p);
0045 #if QT_DEPRECATED_SINCE(6, 0)
0046 using LibraryLocation = LibraryPath;
0047 QT_DEPRECATED_VERSION_X_6_0("Use path()")
0048 static QString location(LibraryLocation location)
0049 { return path(location); }
0050 #endif
0051 static QStringList platformPluginArguments(const QString &platformName);
0052
0053 private:
0054 QLibraryInfo();
0055 };
0056
0057 #if QT_DEPRECATED_SINCE(6, 9)
0058
0059 QT_DEPRECATED_VERSION_X_6_9("Use QLibraryInfo::isSharedBuild() instead.")
0060 Q_CORE_EXPORT Q_DECL_CONST_FUNCTION bool qSharedBuild() noexcept;
0061
0062 #endif
0063
0064 QT_END_NAMESPACE
0065
0066 #endif