KConfig

kauthorized.h
1 /* This file is part of the KDE libraries
2  SPDX-FileCopyrightText: 1997 Matthias Kalle Dalheimer <[email protected]>
3  SPDX-FileCopyrightText: 1998, 1999 Waldo Bastian <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KAUTHORIZED_H
9 #define KAUTHORIZED_H
10 
11 #include <kconfigcore_export.h>
12 
13 class QUrl;
14 class QString;
15 class QStringList;
16 
25 namespace KAuthorized
26 {
57 KCONFIGCORE_EXPORT bool authorize(const QString &action);
58 
84 KCONFIGCORE_EXPORT bool authorizeAction(const QString &action);
85 
86 #if KCONFIGCORE_ENABLE_DEPRECATED_SINCE(5, 24)
87 
112 KCONFIGCORE_DEPRECATED_VERSION(5, 24, "Use KAuthorized::authorizeAction(const QString&)")
113 KCONFIGCORE_EXPORT bool authorizeKAction(const QString &action);
114 #endif
115 
138 KCONFIGCORE_EXPORT bool authorizeControlModule(const QString &menuId);
139 
150 KCONFIGCORE_EXPORT QStringList authorizeControlModules(const QStringList &menuIds);
151 
152 }
153 
154 #endif
KCONFIGCORE_EXPORT QStringList authorizeControlModules(const QStringList &menuIds)
Determines which control modules from a list the user is permitted to use.
KCONFIGCORE_EXPORT bool authorize(const QString &action)
Returns whether the user is permitted to perform a certain action.
The functions in this namespace provide the core of the Kiosk action restriction system; the KIO and ...
KCONFIGCORE_EXPORT bool authorizeAction(const QString &action)
Returns whether the user is permitted to perform a certain action.
KCONFIGCORE_EXPORT bool authorizeControlModule(const QString &menuId)
Returns whether the user is permitted to use a certain control module.
KCONFIGCORE_EXPORT bool authorizeKAction(const QString &action)
Returns whether the user is permitted to perform a certain action.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jul 1 2020 22:46:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.