• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Plasma

Plasma::AuthorizationInterface

Plasma::AuthorizationInterface Class Reference

Allows authorization of access to plasma services. More...

#include <authorizationinterface.h>

Inheritance diagram for Plasma::AuthorizationInterface:
Inheritance graph
[legend]

List of all members.

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

Plasma::AuthorizationInterface::~AuthorizationInterface (  )  [virtual]

Definition at line 32 of file authorizationinterface.cpp.

Plasma::AuthorizationInterface::AuthorizationInterface (  )  [protected]

Definition at line 28 of file authorizationinterface.cpp.


Member Function Documentation

virtual void Plasma::AuthorizationInterface::authorizationRequest ( AuthorizationRule &  rule  )  [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.

Implemented in Plasma::DenyAllAuthorization, Plasma::PinPairingAuthorization, and Plasma::TrustedOnlyAuthorization.

virtual void Plasma::AuthorizationInterface::clientPinRequest ( ClientPinRequest &  request  )  [pure virtual]

Implement this function to respond to an outgoing connection that needs a password to connect succesfully.

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.

Implemented in Plasma::DenyAllAuthorization, Plasma::PinPairingAuthorization, and Plasma::TrustedOnlyAuthorization.


The documentation for this class was generated from the following files:
  • authorizationinterface.h
  • authorizationinterface.cpp

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  •     Sodep
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal