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

KDECore

Functions
KAuthorized Namespace Reference

Functions

void allowUrlAction (const QString &action, const KUrl &baseUrl, const KUrl &_destUrl)
 
bool authorize (const QString &genericAction)
 
bool authorizeControlModule (const QString &menuId)
 
QStringList authorizeControlModules (const QStringList &menuIds)
 
bool authorizeKAction (const QString &action)
 
bool authorizeUrlAction (const QString &action, const KUrl &baseUrl, const KUrl &destUrl)
 

Detailed Description

Extracted from kapplication (3.x).

Kiosk authorization framework

Function Documentation

void KAuthorized::allowUrlAction ( const QString &  action,
const KUrl &  baseUrl,
const KUrl &  _destUrl 
)

Allow a certain URL action.

This can be useful if your application needs to ensure access to an application specific directory that may otherwise be subject to KIOSK restrictions.

Parameters
actionThe name of the action.
baseUrlThe url where the action originates from
_destUrlThe object of the action

Definition at line 342 of file kauthorized.cpp.

bool KAuthorized::authorize ( const QString &  genericAction)

Returns whether a certain action is authorized.

Parameters
genericActionThe name of a generic action
Returns
true if the action is authorized
Todo:
what are the generic actions?

Definition at line 215 of file kauthorized.cpp.

bool KAuthorized::authorizeControlModule ( const QString &  menuId)

Returns whether access to a certain control module is authorized.

Parameters
menuIdidentifying the control module, e.g. kde-mouse.desktop
Returns
true if access to the module is authorized, false otherwise.

Definition at line 237 of file kauthorized.cpp.

QStringList KAuthorized::authorizeControlModules ( const QStringList &  menuIds)

Returns which control modules from a given list are authorized for access.

Parameters
menuIdslist of menu-ids of control modules; an example of a menu-id is kde-mouse.desktop.
Returns
Those control modules for which access has been authorized.

Definition at line 245 of file kauthorized.cpp.

bool KAuthorized::authorizeKAction ( const QString &  action)

Returns whether a certain KAction is authorized.

Parameters
actionThe name of a KAction action. The name is prepended with "action/" before being passed to authorize()
Returns
true if the KAction is authorized

Definition at line 227 of file kauthorized.cpp.

bool KAuthorized::authorizeUrlAction ( const QString &  action,
const KUrl &  baseUrl,
const KUrl &  destUrl 
)

Returns whether a certain URL related action is authorized.

Parameters
actionThe name of the action. Known actions are
  • list (may be listed (e.g. in file selection dialog)),
  • link (may be linked to),
  • open (may open) and
  • redirect (may be redirected to)
baseUrlThe url where the action originates from
destUrlThe object of the action
Returns
true when the action is authorized, false otherwise.

Definition at line 354 of file kauthorized.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • 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