Changeset View
Changeset View
Standalone View
Standalone View
src/kauthaction.h
Show First 20 Lines • Show All 338 Lines • ▼ Show 20 Line(s) | 85 | public: | |||
---|---|---|---|---|---|
339 | * @return @c Action::Denied if the user doesn't have the authorization to execute the action, | 339 | * @return @c Action::Denied if the user doesn't have the authorization to execute the action, | ||
340 | * @c Action::Authorized if the action can be executed, | 340 | * @c Action::Authorized if the action can be executed, | ||
341 | * @c Action::AuthRequired if the user could acquire the authorization after authentication, | 341 | * @c Action::AuthRequired if the user could acquire the authorization after authentication, | ||
342 | * @c Action::UserCancelled if the user cancels the authentication dialog. Not currently supported by the Polkit backend | 342 | * @c Action::UserCancelled if the user cancels the authentication dialog. Not currently supported by the Polkit backend | ||
343 | */ | 343 | */ | ||
344 | AuthStatus status() const; | 344 | AuthStatus status() const; | ||
345 | 345 | | |||
346 | /** | 346 | /** | ||
347 | * @brief Revokes temporary authorization of an action | ||||
348 | * | ||||
349 | * This method requests the authorization backend to revoke action's temporary authorization. | ||||
350 | * | ||||
351 | * @return Whether authorization was successfully revoked | ||||
352 | */ | ||||
353 | bool revokeAuthorization() const; | ||||
354 | | ||||
355 | /** | ||||
347 | * @brief Get the job object used to execute the action | 356 | * @brief Get the job object used to execute the action | ||
348 | * | 357 | * | ||
349 | * @return The KJob::ExecuteJob object to be used to run the action. | 358 | * @return The KJob::ExecuteJob object to be used to run the action. | ||
350 | */ | 359 | */ | ||
351 | ExecuteJob *execute(ExecutionMode mode = ExecuteMode); | 360 | ExecuteJob *execute(ExecutionMode mode = ExecuteMode); | ||
352 | 361 | | |||
353 | /** | 362 | /** | ||
354 | * @brief Sets a parent widget for the authentication dialog | 363 | * @brief Sets a parent widget for the authentication dialog | ||
Show All 30 Lines |