# Namespace KAuthorized

Module | kdecore
Namespace | KAuthorized

Extracted from kapplication (3.x). Kiosk authorization framework

### methods

- allowUrlAction (action, baseUrl, _destUrl)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  action | QString |
  baseUrl | KUrl |
  _destUrl | KUrl |

  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.

  action - The name of the action.

  baseUrl - The url where the action originates from

  _destUrl - The object of the action

- authorize (genericAction)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  genericAction | QString |

  Returns whether a certain action is authorized

  genericAction - The name of a generic action Returns true if the action is authorized To do: what are the generic actions?

- authorizeControlModule (menuId)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  menuId | QString |

  Returns whether access to a certain control module is authorized.

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

- authorizeControlModules (menuIds)

  returns QStringList

  Argument | Type | Default
  --- | --- | ---
  menuIds | QStringList |

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

  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.

- authorizeKAction (action)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  action | QString |

  Returns whether a certain KAction is authorized.

  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

- authorizeUrlAction (action, baseUrl, destUrl)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  action | QString |
  baseUrl | KUrl |
  destUrl | KUrl |

  Returns whether a certain URL related action is authorized.

  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.