properties stub

svn path=/trunk/kdesupport/qca/; revision=405512
This commit is contained in:
Justin Karneges 2005-04-14 10:47:29 +00:00
parent 2cc707f493
commit 3647904e4e
3 changed files with 27 additions and 1 deletions

2
TODO
View File

@ -19,7 +19,6 @@
give all classes non-default ctors/dtors/copy/op=, and dpointers? give all classes non-default ctors/dtors/copy/op=, and dpointers?
* finish API: * finish API:
ability to set arbitrary properties in a provider (string+variant pairs?)
finish qcaprovider.h finish qcaprovider.h
* build system: * build system:
@ -30,6 +29,7 @@
create qt4 qmake .prf for auto-discovery by applications create qt4 qmake .prf for auto-discovery by applications
* finish code for APIs: * finish code for APIs:
core: properties
cert: rfc 2818 hostname validation cert: rfc 2818 hostname validation
keystore keystore
tls tls

View File

@ -313,6 +313,16 @@ namespace QCA
*/ */
QCA_EXPORT void unloadAllPlugins(); QCA_EXPORT void unloadAllPlugins();
/**
* Set a global property
*/
QCA_EXPORT void setProperty(const QString &name, const QVariant &value);
/**
* Retrieve a global property
*/
QCA_EXPORT QVariant getProperty(const QString &name);
/** /**
* Return the Random provider that is currently set to be the * Return the Random provider that is currently set to be the
* global random number generator. * global random number generator.

View File

@ -268,6 +268,22 @@ void unloadAllPlugins()
global->manager.unloadAll(); global->manager.unloadAll();
} }
void setProperty(const QString &name, const QVariant &value)
{
QMutexLocker lock(&global->manager_mutex);
Q_UNUSED(name);
Q_UNUSED(value);
}
QVariant getProperty(const QString &name)
{
QMutexLocker lock(&global->manager_mutex);
Q_UNUSED(name);
return QVariant();
}
Random & globalRNG() Random & globalRNG()
{ {
if(!global->rng) if(!global->rng)