LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
IPlugin2 Class Referenceabstract

Base class for second-level plugins. More...

#include "iplugin2.h"

Public Member Functions

virtual QSet< QByteArray > GetPluginClasses () const =0
 Returns the plugin classes of this second-level plugin. More...
 
virtual ~IPlugin2 ()
 

Detailed Description

Base class for second-level plugins.

A plugin for LeechCraft could be actually a plugin for another plugin. Then, to simplify the process, it's better to implement this interface. LeechCraft would the automatically manage the dependencies, perform correct initialization order and feed the matching first-level plugins with second-level ones.

Plugins of different levels are matched with each other by their class, which is returned by IPlugin2::GetPluginClasses() and by IPluginReady::GetExpectedPluginClasses().

Definition at line 27 of file iplugin2.h.

Constructor & Destructor Documentation

◆ ~IPlugin2()

virtual IPlugin2::~IPlugin2 ( )
inlinevirtual

Definition at line 45 of file iplugin2.h.

Member Function Documentation

◆ GetPluginClasses()

virtual QSet<QByteArray> IPlugin2::GetPluginClasses ( ) const
pure virtual

Returns the plugin classes of this second-level plugin.

Note
This function should be able to work correctly before IInfo::Init() is called on the plugin instance object.
Returns
The plugin classes.

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