Multi diag tools
|
QtLibrary offers some utilities specific to Qt libraries. More...
#include <QtLibrary.h>
Inherits QObject.
Public Member Functions | |
QtPluginInfoList | findLibraryPlugins (const LibraryInfo &qtLibrary, const Mdt::FileSystem::PathList &searchFirstPathPrefixList) |
Find plugins for a Qt library. More... | |
QtPluginInfoList | findLibrariesPlugins (const LibraryInfoList &qtLibraries, const Mdt::FileSystem::PathList &searchFirstPathPrefixList) |
Find plugins for a list of Qt libraries. More... | |
Static Public Member Functions | |
static LibraryInfoList | getQtLibraries (const LibraryInfoList &libraries) |
Get Qt libraries out of libraries. | |
static QtModule | module (const LibraryInfo &qtLibrary) |
Get the module to which qtLibrary is part of. | |
static QtModuleList | getModules (const LibraryInfoList &qtLibraries) |
Get a list that contains modules for qtLibraries. | |
static QStringList | getPluginsDirectories (QtModule module) |
Get plugins directories for module. More... | |
static QStringList | getPluginsDirectories (const QtModuleList &modules) |
Get plugins directories for modules. More... | |
static QString | findPluginsRoot (const Mdt::FileSystem::PathList &pathPrefixList) |
Find the root directory of plugins. More... | |
QtLibrary offers some utilities specific to Qt libraries.
Definition at line 42 of file QtLibrary.h.
QtPluginInfoList Mdt::DeployUtils::QtLibrary::findLibrariesPlugins | ( | const LibraryInfoList & | qtLibraries, |
const Mdt::FileSystem::PathList & | searchFirstPathPrefixList | ||
) |
Find plugins for a list of Qt libraries.
Definition at line 51 of file QtLibrary.cpp.
QtPluginInfoList Mdt::DeployUtils::QtLibrary::findLibraryPlugins | ( | const LibraryInfo & | qtLibrary, |
const Mdt::FileSystem::PathList & | searchFirstPathPrefixList | ||
) |
Find plugins for a Qt library.
Will first deduce Qt plugins directories attached to qtLibrary using getPluginsDirectories(QtModule), then find the existing ones.
searchFirstPathPrefixList is a list of paths to the root of a Qt installation. Plugins are serached first in each item of searchFirstPathPrefixList, then in system library prefix paths. For each path in all mentionned path prefixes, plugins are searched in qt5/plugins, then plugins subdirectories.
Definition at line 38 of file QtLibrary.cpp.
|
static |
Find the root directory of plugins.
For a given path prefix, a subdirectory, named plugins, will be located in known subdirectories, like plugins or qt5/plugins .
If pathPrefixList contains at least 1 non empty path, plugins directory will only be located starting from prefixes in it. Else, system path prefixes will be used.
Definition at line 191 of file QtLibrary.cpp.
|
static |
Get plugins directories for module.
Will return a list of directory names for module , without any path.
Definition at line 122 of file QtLibrary.cpp.
|
static |
Get plugins directories for modules.
Will return a list of directory names for modules , without any path.
Definition at line 180 of file QtLibrary.cpp.