Trade equipment common library. 1.0.0
TEPlugin< Type > Class Template Reference

The TEPlugin class provides an abstract base for custom TEBase plugins. More...

#include <teplugin.h>

Inheritance diagram for TEPlugin< Type >:
TEPluginBase

Public Member Functions

QStringList keys () const
TEBasecreate (const QString &key)
Public Member Functions inherited from TEPluginBase
 TEPluginBase ()
 ~TEPluginBase ()

Detailed Description

template<class Type>
class TEPlugin< Type >

The TEPlugin class provides an abstract base for custom TEBase plugins.

\mainclass

The Trade equipment driver plugin is a simple plugin interface that makes it easy to create your own Trade equipment drivers plugins that can be loaded dynamically by Ananas and Qt.

Writing a Trade equipment plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys() and create(), and exporting the class with the TE_EXPORT_PLUGIN macro. See the Ananas extensions plugins that come with Ananas for example implementations (in the {extensions} subdirectory of the source distribution). Read the plugins documentation for more information on plugins.

Member Function Documentation

◆ create()

template<class Type>
TEBase * TEPlugin< Type >::create ( const QString & key)
inlinevirtual

Creates and returns a TEBase object for the driver key key. The driver key is usually the class name of the required driver.

See also
keys()

Implements TEPluginBase.

◆ keys()

template<class Type>
QStringList TEPlugin< Type >::keys ( ) const
inlinevirtual

Returns the list of extensions (keys) this plugin supports.

These keys are usually the class names of the custom extension that are implemented in the plugin.

See also
create()

Implements TEPluginBase.


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