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

Plasma

  • Plasma
  • AuthorizationInterface
Public Member Functions | Protected Member Functions | List of all members
Plasma::AuthorizationInterface Class Referenceabstract

#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

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
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
This file is part of the KDE documentation.
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.

Plasma

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal