Ananas Library  0.9.5
Public Member Functions | List of all members
AExtensionPlugin< type > Class Template Reference

The AExtensionPlugin class provides an abstract base for custom AExtension plugins. More...

#include <aextensionplugin.h>

Inheritance diagram for AExtensionPlugin< type >:
AExtensionPluginBase

Public Member Functions

QStringList keys () const
 
AExtensioncreate (const QString &key)
 
- Public Member Functions inherited from AExtensionPluginBase
 AExtensionPluginBase ()
 
 ~AExtensionPluginBase ()
 

Detailed Description

template<class type>
class AExtensionPlugin< type >

The AExtensionPlugin class provides an abstract base for custom AExtension plugins.

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

Writing a Ananas extension plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys() and create(), and exporting the class with the Q_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

template<class type >
AExtension * AExtensionPlugin< type >::create ( const QString &  key)
inlinevirtual

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

See Also
keys()

Implements AExtensionPluginBase.

template<class type >
QStringList AExtensionPlugin< 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 AExtensionPluginBase.


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