AccessPolicyPlugin Class
(Sailfish::AccessPolicyPlugin)
The AccessPolicyPlugin class defines an interface for writing an access policy control plugin. More...
Public Functions
Signals
Detailed Description
The AccessPolicyPlugin class defines an interface for writing an access policy control plugin.
This plugin interface allows you to provide a custom implementation for setting and reading access policy values in AccessPolicy objects.
To create an access plugin, subclass AccessPolicyPlugin and override keyValue() and setKeyValue() according to how keys should be read and written in the custom implementation. AccessPolicy will load the installed plugin in order to read and write access policy values.
Member Function Documentation
[virtual]
AccessPolicyPlugin::~AccessPolicyPlugin()
Destroys the instance of AccessPolicyPlugin. The destructor is virtual.
[pure virtual]
QVariant AccessPolicyPlugin::keyValue(const QString &key)
Returns the value for the specified key.
See also setKeyValue().
[signal]
void AccessPolicyPlugin::keyValueChanged(const QString &key, const QVariant &value)
Emitted when the specified key changes to value.
[pure virtual]
void AccessPolicyPlugin::setKeyValue(const QString &key, const QVariant &value)
Sets the value for the specified key to value and emits keyValueChanged() if the value changed as a result.
See also keyValue().