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

KDECore

KAuthorized Namespace Reference


Detailed Description

Extracted from kapplication (3.x).

Kiosk authorization framework


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)

Function Documentation

KDE_EXPORT 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:
action The name of the action.
baseUrl The url where the action originates from
_destUrl The object of the action

Definition at line 341 of file kauthorized.cpp.

KDE_EXPORT bool KAuthorized::authorize ( const QString &  genericAction  ) 

Returns whether a certain action is authorized.

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

Definition at line 218 of file kauthorized.cpp.

KDE_EXPORT bool KAuthorized::authorizeControlModule ( const QString &  menuId  ) 

Returns whether access to a certain control module is authorized.

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

Definition at line 240 of file kauthorized.cpp.

KDE_EXPORT QStringList KAuthorized::authorizeControlModules ( const QStringList &  menuIds  ) 

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

Parameters:
menuIds list 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 248 of file kauthorized.cpp.

KDE_EXPORT bool KAuthorized::authorizeKAction ( const QString &  action  ) 

Returns whether a certain KAction is authorized.

Parameters:
action The 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 230 of file kauthorized.cpp.

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

Returns whether a certain URL related action is authorized.

Parameters:
action The 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)
baseUrl The url where the action originates from
destUrl The object of the action
Returns:
true when the action is authorized, false otherwise.

Definition at line 353 of file kauthorized.cpp.

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • 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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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