|
LMMS
|
#include <PluginFactory.h>
Classes | |
| struct | PluginInfo |
| struct | PluginInfoAndKey |
Public Types | |
| using | PluginInfoList = QList<PluginInfo> |
| using | DescriptorMap = QMultiMap<Plugin::Type, Plugin::Descriptor*> |
Public Slots | |
| void | discoverPlugins () |
Public Member Functions | |
| PluginFactory () | |
| ~PluginFactory ()=default | |
| Plugin::DescriptorList | descriptors () const |
| Returns a list of all found plugins' descriptors. | |
| Plugin::DescriptorList | descriptors (Plugin::Type type) const |
| const PluginInfoList & | pluginInfos () const |
| Returns a list of all found plugins' PluginFactory::PluginInfo objects. | |
| PluginInfoAndKey | pluginSupportingExtension (const QString &ext) |
| Returns a plugin that support the given file extension. | |
| PluginInfo | pluginInfo (const char *name) const |
| QString | errorString (QString pluginName) const |
Static Public Member Functions | |
| static void | setupSearchPaths () |
| static QList< QRegularExpression > | getExcludePatterns (const char *envVar) |
| static PluginFactory * | instance () |
Static Private Member Functions | |
| static void | filterPlugins (QSet< QFileInfo > &files) |
Private Attributes | |
| DescriptorMap | m_descriptors |
| PluginInfoList | m_pluginInfos |
| QMap< QString, PluginInfoAndKey > | m_pluginByExt |
| std::vector< std::string > | m_garbage |
| cleaned up at destruction | |
| QHash< QString, QString > | m_errors |
Static Private Attributes | |
| static std::unique_ptr< PluginFactory > | s_instance |
| using lmms::PluginFactory::DescriptorMap = QMultiMap<Plugin::Type, Plugin::Descriptor*> |
| using lmms::PluginFactory::PluginInfoList = QList<PluginInfo> |
| lmms::PluginFactory::PluginFactory | ( | ) |
|
default |
| Plugin::DescriptorList lmms::PluginFactory::descriptors | ( | ) | const |
Returns a list of all found plugins' descriptors.
| Plugin::DescriptorList lmms::PluginFactory::descriptors | ( | Plugin::Type | type | ) | const |
|
slot |
| QString lmms::PluginFactory::errorString | ( | QString | pluginName | ) | const |
When loading a library fails during discovery, the error string is saved. It can be retrieved by calling this function.
|
staticprivate |
|
static |
|
static |
Returns the singleton instance of PluginFactory. You won't need to call this directly, use pluginFactory instead.
| PluginFactory::PluginInfo lmms::PluginFactory::pluginInfo | ( | const char * | name | ) | const |
Returns the PluginInfo object of the plugin with the given name. If the plugin is not found, an empty PluginInfo is returned (use PluginInfo::isNull() to check this).
| const PluginFactory::PluginInfoList & lmms::PluginFactory::pluginInfos | ( | ) | const |
Returns a list of all found plugins' PluginFactory::PluginInfo objects.
| PluginFactory::PluginInfoAndKey lmms::PluginFactory::pluginSupportingExtension | ( | const QString & | ext | ) |
Returns a plugin that support the given file extension.
|
static |
|
private |
|
private |
|
private |
cleaned up at destruction
|
private |
|
private |
|
staticprivate |