FougTools
0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
|
Generic plugin filter that keeps only root components satisfying an interface. More...
#include <plugins_loader_instance_iface_filter.h>
Public Member Functions | |
bool | accepts (QPluginLoader *loader, QString *error=NULL) const |
Keep or discard the root component of QPluginLoader loader . More... | |
Generic plugin filter that keeps only root components satisfying an interface.
INTERFACE | Type of the interface (declared with Q_DECLARE_INTERFACE()) <qttools/core/plugins_loader_instance_iface_filter.h> |
|
inlinevirtual |
Keep or discard the root component of QPluginLoader loader
.
Sub-classes can require access to the root component, other can avoid loading by using QPluginLoader::metaData()
By default this functions does nothing apart checking loader
is non null.
[in,out] | loader | The plugin loader providing the root component. The root component is not loaded, the filter might load it with QPluginLoader::instance() |
[out] | error | Used to report error in case the root component is filtered out |
Reimplemented from qtcore::PluginsLoader_InstanceFilter.