Plasma
#include <authorizationinterface.h>
Public Member Functions | |
virtual | ~AuthorizationInterface () |
virtual void | authorizationRequest (AuthorizationRule &rule)=0 |
virtual void | clientPinRequest (ClientPinRequest &request)=0 |
Protected Member Functions | |
AuthorizationInterface () | |
Detailed Description
Allows authorization of access to plasma services.
This class is only needed when you create a plasma shell. When you implement it and register it with the AuthorizationManager class, it allows you to respond to incoming service access attempts. Whenever a message is received that does not match any of the AuthorizationRules, AuthorizationManager creates a new rule matching it, and passes it to the authorize function. Change the rule from Unspecified to something else like Allow or Deny to continue processing the message. It also allows you to outgoing access attempts that require pin pairing, to allow your shell to show a dialog to ask the user for a password.
- Since
- 4.4
Definition at line 52 of file authorizationinterface.h.
Constructor & Destructor Documentation
|
virtual |
Definition at line 32 of file authorizationinterface.cpp.
|
protected |
Definition at line 28 of file authorizationinterface.cpp.
Member Function Documentation
|
pure virtual |
implement this function to respond to an incoming request that doesn't match any rule.
- Parameters
-
rule a new AuthorizationRule matching an incoming operation. Call setRules on this rule to allow/deny the operation.
|
pure virtual |
Implement this function to respond to an outgoing connection that needs a password to connect successfully.
As a response to this you'll probably want to show a dialog.
- Parameters
-
request a ClientPinRequest where you can call setPin on to set the pin for the outgoing connection.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.