mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-06 07:49:34 +00:00
properties stub
svn path=/trunk/kdesupport/qca/; revision=405512
This commit is contained in:
parent
2cc707f493
commit
3647904e4e
2
TODO
2
TODO
@ -19,7 +19,6 @@
|
||||
give all classes non-default ctors/dtors/copy/op=, and dpointers?
|
||||
|
||||
* finish API:
|
||||
ability to set arbitrary properties in a provider (string+variant pairs?)
|
||||
finish qcaprovider.h
|
||||
|
||||
* build system:
|
||||
@ -30,6 +29,7 @@
|
||||
create qt4 qmake .prf for auto-discovery by applications
|
||||
|
||||
* finish code for APIs:
|
||||
core: properties
|
||||
cert: rfc 2818 hostname validation
|
||||
keystore
|
||||
tls
|
||||
|
@ -313,6 +313,16 @@ namespace QCA
|
||||
*/
|
||||
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
|
||||
* global random number generator.
|
||||
|
@ -268,6 +268,22 @@ void unloadAllPlugins()
|
||||
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()
|
||||
{
|
||||
if(!global->rng)
|
||||
|
Loading…
x
Reference in New Issue
Block a user