The code below shows some simple operations on a QCA::Provider object, including use of iterators and some member functions.
The code below shows some simple operations on a QCA::Provider object, including use of iterators and some member functions.
#include <QCoreApplication>
#include <QtCrypto>
#include <iostream>
#include <qstringlist.h>
#ifdef QT_STATICPLUGIN
#include "import_plugins.h"
#endif
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
std::cout << provider->name().toLatin1().data() << ": ";
QStringList capabilities = provider->features();
std::cout << capabilities.join(QStringLiteral(", ")).toLatin1().data() << std::endl;
}
std::cout << "default: ";
std::cout << capabilities.join(QStringLiteral(", ")).toLatin1().data() << std::endl;
return 0;
}
Convenience method for initialising and cleaning up QCA.
Definition qca_core.h:660
Algorithm provider.
Definition qca_core.h:765
QCA_EXPORT void scanForPlugins()
Scan for new plugins.
QCA_EXPORT ProviderList providers()
Return a list of the current providers.
QCA_EXPORT QStringList defaultFeatures()
Generate a list of the built in features.