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
virtual Provider *createProvider() { ... }

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 ( )

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:
virtual QCA::Provider * createProvider()=0
Returns a newly allocated Provider instance.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:48:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.