Changeset View
Changeset View
Standalone View
Standalone View
src/core/kauthorized.h
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | |||||
91 | * @return @c true if the QAction is authorized, @c false | 91 | * @return @c true if the QAction is authorized, @c false | ||
92 | * otherwise. | 92 | * otherwise. | ||
93 | * @since 5.24 | 93 | * @since 5.24 | ||
94 | * | 94 | * | ||
95 | * @see authorize() | 95 | * @see authorize() | ||
96 | */ | 96 | */ | ||
97 | KCONFIGCORE_EXPORT bool authorizeAction(const QString &action); | 97 | KCONFIGCORE_EXPORT bool authorizeAction(const QString &action); | ||
98 | 98 | | |||
99 | #if KCONFIGCORE_ENABLE_DEPRECATED_SINCE(5, 24) | ||||
99 | /** | 100 | /** | ||
100 | * Returns whether the user is permitted to perform a certain action. | 101 | * Returns whether the user is permitted to perform a certain action. | ||
101 | * | 102 | * | ||
102 | * This behaves like authorize(), except that "action/" is prepended to | 103 | * This behaves like authorize(), except that "action/" is prepended to | ||
103 | * @p action. So if kdeglobals contains | 104 | * @p action. So if kdeglobals contains | ||
104 | * @verbatim | 105 | * @verbatim | ||
105 | [KDE Action Restrictions][$i] | 106 | [KDE Action Restrictions][$i] | ||
106 | action/file_new=false | 107 | action/file_new=false | ||
Show All 9 Lines | |||||
116 | * | 117 | * | ||
117 | * @param action The name of a KAction action. | 118 | * @param action The name of a KAction action. | ||
118 | * @return @c true if the KAction is authorized, @c false | 119 | * @return @c true if the KAction is authorized, @c false | ||
119 | * otherwise. | 120 | * otherwise. | ||
120 | * | 121 | * | ||
121 | * @see authorize() | 122 | * @see authorize() | ||
122 | * @deprecated since 5.24, use authorizeAction() instead. | 123 | * @deprecated since 5.24, use authorizeAction() instead. | ||
123 | */ | 124 | */ | ||
124 | #ifndef KDE_NO_DEPRECATED | 125 | KCONFIGCORE_DEPRECATED_VERSION(5, 24, "Use KAuthorized::authorizeAction(const QString&)") | ||
125 | KCONFIGCORE_DEPRECATED_EXPORT bool authorizeKAction(const QString &action); | 126 | KCONFIGCORE_EXPORT bool authorizeKAction(const QString &action); | ||
126 | #endif | 127 | #endif | ||
127 | 128 | | |||
128 | /** | 129 | /** | ||
129 | * Returns whether the user is permitted to use a certain control | 130 | * Returns whether the user is permitted to use a certain control | ||
130 | * module. | 131 | * module. | ||
131 | * | 132 | * | ||
132 | * All settings are read from the "[KDE Control Module Restrictions]" | 133 | * All settings are read from the "[KDE Control Module Restrictions]" | ||
133 | * group. For example, if kdeglobals contains | 134 | * group. For example, if kdeglobals contains | ||
Show All 33 Lines |