QCAPlugin

Search for usage in LXR

QCAPlugin Class Referenceabstract

#include <QtCrypto>

Public Member Functions

virtual ~QCAPlugin ()
 
virtual QCA::ProvidercreateProvider ()=0
 

Detailed Description

Provider plugin base class.

QCA loads cryptographic provider plugins with QPluginLoader. The QObject obtained when loading the plugin must implement the QCAPlugin interface. This is done by inheriting QCAPlugin, and including Q_INTERFACES(QCAPlugin) in your class declaration.

For example:

class MyPlugin : public QObject, public QCAPlugin
{
public:
virtual Provider *createProvider() { ... }
};
Provider plugin base class.
Definition qcaprovider.h:83
virtual QCA::Provider * createProvider()=0
Returns a newly allocated Provider instance.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT

There is only one function to reimplement, called createProvider(). This function should return a newly allocated Provider instance.

Definition at line 82 of file qcaprovider.h.

Constructor & Destructor Documentation

◆ ~QCAPlugin()

virtual QCAPlugin::~QCAPlugin ( )
inlinevirtual

Destructs the object.

Definition at line 88 of file qcaprovider.h.

Member Function Documentation

◆ createProvider()

virtual QCA::Provider * QCAPlugin::createProvider ( )
pure virtual

Returns a newly allocated Provider instance.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:53:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.