• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Plasma

  • Plasma
  • AuthorizationInterface
Public Member Functions | Protected Member Functions

Plasma::AuthorizationInterface Class Reference

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

#include <authorizationinterface.h>

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 34 of file authorizationinterface.cpp.

builddir build BUILD kdelibs plasma remote authorizationinterface cpp builddir build BUILD kdelibs plasma remote authorizationinterface cpp Plasma::AuthorizationInterface::AuthorizationInterface ( ) [protected]

Definition at line 30 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:
rulea new AuthorizationRule matching an incoming operation. Call setRules on this rule to allow/deny the operation.
virtual void Plasma::AuthorizationInterface::clientPinRequest ( ClientPinRequest &  request) [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:
requesta 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:
  • 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
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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