Ananas Library 0.9.5
|
The AExtensionPlugin class provides an abstract base for custom AExtension plugins. More...
#include <aextensionplugin.h>
Public Member Functions | |
QStringList | keys () const |
AExtension * | create (const QString &key) |
![]() | |
AExtensionPluginBase () | |
~AExtensionPluginBase () | |
The AExtensionPlugin class provides an abstract base for custom AExtension plugins.
\mainclass
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.
|
inlinevirtual |
Creates and returns a AExtension object for the driver key key. The driver key is usually the class name of the required driver.
Implements AExtensionPluginBase.
|
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.
Implements AExtensionPluginBase.