|
RestLink 2.2.0
Powerfull Rest Client for Qt
|
Manages discovery, loading, and instantiation of RestLink plugins. More...
#include <pluginmanager.h>
Public Member Functions | |
| PluginManager () | |
| Constructs a new PluginManager instance. | |
| ~PluginManager () | |
| Destroys the PluginManager instance. | |
Static Public Member Functions | |
| static QList< AbstractRequestHandler * > | handlers () |
| Returns a list of all discovered and valid AbstractRequestHandler instances. | |
| static bool | isDiscoveryEnabled () |
| Returns whether plugin discovery is currently enabled. | |
| static void | enableDiscovery () |
| Enables plugin discovery. | |
| static void | setDiscoveryEnabled (bool enable=true) |
| Sets whether plugin discovery should be enabled. | |
| static void | registerPlugin (const QString &name) |
| Registers a plugin name manually. | |
| static PluginManager * | global () |
| Returns the global singleton instance of PluginManager. | |
Manages discovery, loading, and instantiation of RestLink plugins.
This class provides a central interface for registering and loading plugins that extend RestLink's request handling capabilities. It supports optional plugin discovery, which scans runtime library paths for valid RestLink plugins.
| RestLink::PluginManager::PluginManager | ( | ) |
Constructs a new PluginManager instance.
| RestLink::PluginManager::~PluginManager | ( | ) |
Destroys the PluginManager instance.
|
static |
Returns a list of all discovered and valid AbstractRequestHandler instances.
|
static |
Returns whether plugin discovery is currently enabled.
|
static |
Enables plugin discovery.
When enabled, RestLink will scan library paths at runtime to detect and load available plugins. This feature is disabled by default to avoid potential security risks from untrusted binaries.
|
static |
Sets whether plugin discovery should be enabled.
| enable | If true, enables discovery; disables it otherwise. |
|
static |
Registers a plugin name manually.
This will cause the plugin manager attempt to load a plugin, should be more secure than plugin discovery.
| name | The name of the plugin to load. |
|
static |
Returns the global singleton instance of PluginManager.