PolkitQt-1
polkitqt1-gui-action.h
bool isVisible(State state=None) const
Gets whether the action is visible or not when it is in the specified state.
Definition polkitqt1-gui-action.cpp:464
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
QString toolTip(State state=None) const
Gets the tooltip of the action when it is in the specified state.
Definition polkitqt1-gui-action.cpp:312
void revoke()
This method can be used to revoke the authorization obtained for this action.
Definition polkitqt1-gui-action.cpp:249
QString whatsThis(State state=None) const
Gets the whatsThis of the action when it is in the specified state.
Definition polkitqt1-gui-action.cpp:350
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
QString text(State state=None) const
Gets the text of the action when it is in the specified state.
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
bool isEnabled(State state=None) const
Gets whether the action is enabled or not when it is in the specified state.
Definition polkitqt1-gui-action.cpp:426
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
Action(const QString &actionId=QString(), QObject *parent=nullptr)
Constructs a new Action item.
Definition polkitqt1-gui-action.cpp:92
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
QIcon icon(State state=None) const
Gets the icon of the action when it is in the specified state.
Definition polkitqt1-gui-action.cpp:388
QAction(QObject *parent)
checked
enabled
visible
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:55 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:55 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.