API Documentation

Documentation for developing SailfishOS applications

AccessPolicyPlugin Class

(Sailfish::AccessPolicyPlugin)

The AccessPolicyPlugin class defines an interface for writing an access policy control plugin. More...

Header: #include <Sailfish>

Public Functions

virtual ~AccessPolicyPlugin()
virtual QVariant keyValue(const QString &key) = 0
virtual void setKeyValue(const QString &key, const QVariant &value) = 0

Signals

void keyValueChanged(const QString &key, const QVariant &value)

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().

We use cookies to improve your user experience and to help us to develop our services. By continuing to browse the site, you approve of our use of cookies.