19#ifndef ORES_QT_PLUGIN_REGISTRY_HPP
20#define ORES_QT_PLUGIN_REGISTRY_HPP
24#include "ores.qt/export.hpp"
25#include "ores.qt/IPlugin.hpp"
77 void load_from_directory(
const QString& plugin_dir);
84 const QVector<IPlugin*>&
plugins()
const {
return plugins_; }
92 const QVector<plugin_load_error>&
load_errors()
const {
return load_errors_; }
101 QVector<QPluginLoader*> loaders_;
102 QVector<IPlugin*> plugins_;
103 QVector<plugin_load_error> load_errors_;
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Records a plugin that could not be loaded.
Definition PluginRegistry.hpp:34
QString filename
Short filename (e.g. libores.qt.admin.so)
Definition PluginRegistry.hpp:35
QString message
Human-readable error from QPluginLoader::errorString()
Definition PluginRegistry.hpp:36
Singleton registry that discovers and owns all loaded domain plugins.
Definition PluginRegistry.hpp:50
const QVector< IPlugin * > & plugins() const
Return the ordered list of successfully loaded plugins.
Definition PluginRegistry.hpp:84
const QVector< plugin_load_error > & load_errors() const
Return any errors collected during load_from_directory().
Definition PluginRegistry.hpp:92