PolkitQt-1
polkitqt1-gui-action.cpp
@ Challenge
The subject is authorized if more information is provided.
Definition polkitqt1-authority.h:68
Result checkAuthorizationSync(const QString &actionId, const Subject &subject, AuthorizationFlags flags)
Synchronous version of the checkAuthorization method.
Definition polkitqt1-authority.cpp:380
static Authority * instance(PolkitAuthority *authority=nullptr)
Returns the instance of Authority.
Definition polkitqt1-authority.cpp:34
void setVisible(bool visible, States states=All)
Sets whether the current action is visible or not.
Definition polkitqt1-gui-action.cpp:444
void setWhatsThis(const QString &whatsThis, States states=All)
Sets the whatsthis for the current action.
Definition polkitqt1-gui-action.cpp:330
bool activate()
Use this slot if you want to activate the action.
Definition polkitqt1-gui-action.cpp:112
void revoke()
This method can be used to revoke the authorization obtained for this action.
Definition polkitqt1-gui-action.cpp:249
bool is(const QString &actionId) const
This method compares a PolicyKit action Id with the current one of the object.
Definition polkitqt1-gui-action.cpp:244
void setEnabled(bool enabled, States states=All)
Sets whether the current action is enabled or not.
Definition polkitqt1-gui-action.cpp:406
bool isAllowed() const
This method can be used to check the if the current action can be performed (i.e.
Definition polkitqt1-gui-action.cpp:239
void setToolTip(const QString &toolTip, States states=All)
Sets the tooltip for the current action.
Definition polkitqt1-gui-action.cpp:292
void setTargetPID(qint64 pid)
This function sets the process id of the target that should receive the authorization.
Definition polkitqt1-gui-action.cpp:231
void setPolkitAction(const QString &actionId)
Changes the action being tracked.
Definition polkitqt1-gui-action.cpp:482
void dataChanged()
Emitted when the PolicyKit result (PolKitResult) for the given action or the internal data changes (i...
void setText(const QString &text, States states=All)
Sets the text for the current action.
Definition polkitqt1-gui-action.cpp:254
void authorized()
Emitted when using this class as a proxy for a given action, It's only emitted if the activate() slot...
void setIcon(const QIcon &icon, States states=All)
Sets the icon for the current action.
Definition polkitqt1-gui-action.cpp:368
bool isCheckable() const const
checked
enabled
icon
text
toolTip
visible
whatsThis
qint64 applicationPid()
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
T qobject_cast(QObject *object)
bool isNull() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 15 2024 11:56:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 15 2024 11:56:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.