Multi diag tools
Public Member Functions | Static Public Member Functions | List of all members
Mdt::DeployUtils::QtLibrary Class Reference

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...
 

Detailed Description

QtLibrary offers some utilities specific to Qt libraries.

Definition at line 42 of file QtLibrary.h.

Member Function Documentation

QtPluginInfoList Mdt::DeployUtils::QtLibrary::findLibrariesPlugins ( const LibraryInfoList qtLibraries,
const Mdt::FileSystem::PathList searchFirstPathPrefixList 
)

Find plugins for a list of Qt libraries.

See also
findLibraryPlugins()

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.

QString Mdt::DeployUtils::QtLibrary::findPluginsRoot ( const Mdt::FileSystem::PathList pathPrefixList)
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.

QStringList Mdt::DeployUtils::QtLibrary::getPluginsDirectories ( QtModule  module)
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.

QStringList Mdt::DeployUtils::QtLibrary::getPluginsDirectories ( const QtModuleList modules)
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.


The documentation for this class was generated from the following files: