8#include <PhosphorRegistry/phosphorregistry_export.h>
14#include <QtCore/qtclasshelpermacros.h>
48 const QList<PluginSearchPath>& searchPaths = QList<PluginSearchPath>(),
49 QObject* parent =
nullptr);
77 void loadPlugin(const QString&
id);
78 void unloadPlugin(const QString&
id);
79 void unregisterIfOurs(const QString&
id, const std::shared_ptr<
IBarWidgetFactory>& ours);
Finds the plugins of one seam, reads their metadata without loading them, and loads one only when ask...
Definition PluginCatalog.h:140
void rescanCompleted()
After every scan, whether or not anything changed.
void rescanNow()
Rescan now instead of waiting for the watch.
PluginCatalog & catalog()
void pluginUnloaded(const QString &id)
The catalog withdrew a plugin this loader had registered.
void scanAndLoad()
The first scan: find, load and register every plugin, and arm the watch.
PluginLoader(Registry< IBarWidgetFactory > *registry, const QList< PluginSearchPath > &searchPaths=QList< PluginSearchPath >(), QObject *parent=nullptr)
searchPaths highest priority first.
void pluginLoaded(const QString &id)
A plugin's factory was registered.
static PluginSeam barWidgetSeam()
The bar-widget seam: plugins in <root>/bar-widget/, IID PhosphorRegistryBarWidgetPlugin_iid,...
QStringList loadedPluginIds() const
The ids of the plugins currently registered, sorted.
Definition IBarWidgetFactory.h:16
One kind of plugin the suite loads, such as bar widgets.
Definition PluginCatalog.h:37