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() { ... }
Provider plugin base class.
Definition qcaprovider.h:83

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:55:06 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.