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_InstanceFilter Class Reference

Provides plugin filter to be used with PluginsLoader. More...

#include <qttools/core/plugins_loader.h>

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

Public Member Functions

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

Detailed Description

Provides plugin filter to be used with PluginsLoader.

This class is considered as an inner class of PluginsLoader

Member Function Documentation

bool qtcore::PluginsLoader_InstanceFilter::accepts ( QPluginLoader *  loader,
QString *  error = NULL 
) const
virtual

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 in qtcore::PluginsLoader_InstanceIFaceFilter< INTERFACE >.


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