Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-15 09:07:29

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
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         // Insert new values above this line
0041         // Please read the comments in qconfig.cpp.in before adding
0042         SettingsPath = 100
0043     };
0044     static QString path(LibraryPath p);
0045     static QStringList paths(LibraryPath p);
0046 #if QT_DEPRECATED_SINCE(6, 0)
0047     using LibraryLocation = LibraryPath;
0048     QT_DEPRECATED_VERSION_X_6_0("Use path()")
0049     static QString location(LibraryLocation location)
0050     { return path(location); }
0051 #endif
0052     static QStringList platformPluginArguments(const QString &platformName);
0053 
0054 private:
0055     QLibraryInfo();
0056 };
0057 
0058 #if QT_DEPRECATED_SINCE(6, 9)
0059 
0060 QT_DEPRECATED_VERSION_X_6_9("Use QLibraryInfo::isSharedBuild() instead.")
0061 Q_CORE_EXPORT Q_DECL_CONST_FUNCTION bool qSharedBuild() noexcept;
0062 
0063 #endif
0064 
0065 QT_END_NAMESPACE
0066 
0067 #endif // QLIBRARYINFO_H