7#ifndef KAUTH_EXECUTE_JOB_H
8#define KAUTH_EXECUTE_JOB_H
13#include "actionreply.h"
19class ExecuteJobPrivate;
44 KAUTHCORE_NO_EXPORT
ExecuteJob(
const KAuth::Action &action, KAuth::Action::ExecutionMode mode, QObject *parent);
48 friend class ExecuteJobPrivate;
49 std::unique_ptr<ExecuteJobPrivate>
const d;
51 Q_PRIVATE_SLOT(d,
void doExecuteAction())
52 Q_PRIVATE_SLOT(d,
void doAuthorizeAction())
53 Q_PRIVATE_SLOT(d,
void actionPerformedSlot(
const QString &action,
const KAuth::ActionReply &reply))
54 Q_PRIVATE_SLOT(d,
void progressStepSlot(
const QString &action,
int i))
100 bool kill(KillVerbosity verbosity = Quietly);
Class that encapsulates a reply coming from the helper after executing an action.
Definition actionreply.h:335
Class to access, authorize and execute actions.
Definition action.h:76
AuthStatus
The three values set by authorization methods.
Definition action.h:82
Job for executing an Action.
Definition executejob.h:40
void newData(const QVariantMap &data)
Signal emitted by the helper to notify the action's progress.
QVariantMap data() const
Use this to get the data set in the action by HelperSupport::progressStep(QVariant) or returned at th...
void statusChanged(KAuth::Action::AuthStatus status)
Signal emitted when the authentication status changes.
~ExecuteJob() override
Virtual destructor.
void start() override
Starts the job asynchronously.
bool kill(KillVerbosity verbosity=Quietly)
Attempts to halt the execution of the action associated with this job.