8#ifndef KAUTH_OBJECTDECORATOR_H
9#define KAUTH_OBJECTDECORATOR_H
14#include <KAuth/Action>
16#include "kauth_export.h"
22class ObjectDecoratorPrivate;
95 friend class ObjectDecoratorPrivate;
96 std::unique_ptr<ObjectDecoratorPrivate>
const d;
98 Q_PRIVATE_SLOT(d,
void slotActivated())
99 Q_PRIVATE_SLOT(d,
void authStatusChanged(
KAuth::
Action::AuthStatus))
Class to access, authorize and execute actions.
Definition action.h:76
A decorator to add auth features to a button or an action.
Definition objectdecorator.h:32
void authorized(const KAuth::Action &action)
Signal emitted when the action is authorized.
~ObjectDecorator() override
Destructs the decorator.
void setAuthAction(const QString &actionName)
Sets the action object associated with this decorator.
void setAuthAction(const KAuth::Action &action)
Sets the action object associated with this decorator.
KAuth::Action authAction() const
Returns the action object associated with this decorator, or an invalid action if it does not have on...
ObjectDecorator(QObject *parent)
Instantiate a new decorator attached to an object.