FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
qtcore::PluginsLoader_InstanceIFaceFilter< INTERFACE > Class Template Reference

Generic plugin filter that keeps only root components satisfying an interface. More...

#include <plugins_loader_instance_iface_filter.h>

Inheritance diagram for qtcore::PluginsLoader_InstanceIFaceFilter< INTERFACE >:
qtcore::PluginsLoader_InstanceFilter

Public Member Functions

bool accepts (QPluginLoader *loader, QString *error=NULL) const
 Keep or discard the root component of QPluginLoader loader. More...
 

Detailed Description

template<typename INTERFACE>
class qtcore::PluginsLoader_InstanceIFaceFilter< INTERFACE >

Generic plugin filter that keeps only root components satisfying an interface.

Template Parameters
INTERFACEType of the interface (declared with Q_DECLARE_INTERFACE()) <qttools/core/plugins_loader_instance_iface_filter.h>

Member Function Documentation

template<typename INTERFACE >
bool qtcore::PluginsLoader_InstanceIFaceFilter< INTERFACE >::accepts ( QPluginLoader *  loader,
QString *  error = NULL 
) const
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.

Parameters
[in,out]loaderThe plugin loader providing the root component. The root component is not loaded, the filter might load it with QPluginLoader::instance()
[out]errorUsed to report error in case the root component is filtered out
Returns
Returns true is the root component can be kept

Reimplemented from qtcore::PluginsLoader_InstanceFilter.


The documentation for this class was generated from the following file: