Public Member Functions | Private Attributes | List of all members
qt_gui_cpp::CompositePluginProvider Class Reference

#include <composite_plugin_provider.h>

Inheritance diagram for qt_gui_cpp::CompositePluginProvider:
Inheritance graph
[legend]

Public Member Functions

 CompositePluginProvider (const QList< PluginProvider *> &plugin_providers=QList< PluginProvider *>())
 
virtual QList< PluginDescriptor * > discover_descriptors (QObject *discovery_data)
 
virtual void * load (const QString &plugin_id, PluginContext *plugin_context)
 
virtual Pluginload_plugin (const QString &plugin_id, PluginContext *plugin_context)
 
virtual void set_plugin_providers (const QList< PluginProvider *> &plugin_providers)
 
virtual void shutdown ()
 
virtual void unload (void *plugin_instance)
 
virtual ~CompositePluginProvider ()
 
- Public Member Functions inherited from qt_gui_cpp::PluginProvider
virtual QMap< QString, QString > discover (QObject *discovery_data)
 
 PluginProvider ()
 
virtual void unload_plugin (Plugin *plugin_instance)
 
virtual ~PluginProvider ()
 

Private Attributes

QMap< PluginProvider *, QSet< QString > > discovered_plugins_
 
QList< PluginProvider * > plugin_providers_
 
QMap< void *, PluginProvider * > running_plugins_
 

Detailed Description

Definition at line 47 of file composite_plugin_provider.h.

Constructor & Destructor Documentation

◆ CompositePluginProvider()

qt_gui_cpp::CompositePluginProvider::CompositePluginProvider ( const QList< PluginProvider *> &  plugin_providers = QList<PluginProvider*>())

Definition at line 39 of file composite_plugin_provider.cpp.

◆ ~CompositePluginProvider()

qt_gui_cpp::CompositePluginProvider::~CompositePluginProvider ( )
virtual

Definition at line 44 of file composite_plugin_provider.cpp.

Member Function Documentation

◆ discover_descriptors()

QList< PluginDescriptor * > qt_gui_cpp::CompositePluginProvider::discover_descriptors ( QObject *  discovery_data)
virtual
Attention
Ownership of returned PluginDescriptor's is transfered to the caller

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 62 of file composite_plugin_provider.cpp.

◆ load()

void * qt_gui_cpp::CompositePluginProvider::load ( const QString &  plugin_id,
PluginContext plugin_context 
)
virtual

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 98 of file composite_plugin_provider.cpp.

◆ load_plugin()

Plugin * qt_gui_cpp::CompositePluginProvider::load_plugin ( const QString &  plugin_id,
PluginContext plugin_context 
)
virtual

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 122 of file composite_plugin_provider.cpp.

◆ set_plugin_providers()

void qt_gui_cpp::CompositePluginProvider::set_plugin_providers ( const QList< PluginProvider *> &  plugin_providers)
virtual
Note
The ownership of the plugin providers is transferred to the callee.

Definition at line 52 of file composite_plugin_provider.cpp.

◆ shutdown()

void qt_gui_cpp::CompositePluginProvider::shutdown ( )
virtual

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 158 of file composite_plugin_provider.cpp.

◆ unload()

void qt_gui_cpp::CompositePluginProvider::unload ( void *  plugin_instance)
virtual

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 145 of file composite_plugin_provider.cpp.

Member Data Documentation

◆ discovered_plugins_

QMap<PluginProvider*, QSet<QString> > qt_gui_cpp::CompositePluginProvider::discovered_plugins_
private

Definition at line 76 of file composite_plugin_provider.h.

◆ plugin_providers_

QList<PluginProvider*> qt_gui_cpp::CompositePluginProvider::plugin_providers_
private

Definition at line 74 of file composite_plugin_provider.h.

◆ running_plugins_

QMap<void*, PluginProvider*> qt_gui_cpp::CompositePluginProvider::running_plugins_
private

Definition at line 78 of file composite_plugin_provider.h.


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


qt_gui_cpp
Author(s): Dirk Thomas
autogenerated on Fri Jun 24 2022 02:42:39