6#include <PhosphorServicePolkit/phosphorservicepolkit_export.h>
32class PHOSPHORSERVICEPOLKIT_EXPORT AuthRequest :
public QObject
76 return m_selectedIdentity;
89 [[nodiscard]]
bool echo()
const
100 Q_DISABLE_COPY_MOVE(AuthRequest)
110 QVariantMap m_details;
112 QStringList m_identities;
113 int m_selectedIdentity = 0;
void setSelectedIdentity(int index)
Out-of-range indices are ignored (the current selection is kept).
QVariantMap details() const
Definition AuthRequest.h:58
friend class ListenerImpl
Definition AuthRequest.h:101
QString message() const
Definition AuthRequest.h:50
void selectedIdentityChanged()
int selectedIdentity() const
Index into identities of the identity the user will authenticate as (default 0).
Definition AuthRequest.h:74
QStringList identities() const
Display strings for the identities the user may authenticate as.
Definition AuthRequest.h:68
friend class PolkitAgent
Definition AuthRequest.h:102
bool echo() const
Whether the response to prompt should be echoed (false for passwords).
Definition AuthRequest.h:89
QString actionId() const
Definition AuthRequest.h:46
QString cookie() const
The opaque polkit cookie that ties this request to its authentication.
Definition AuthRequest.h:63
QString iconName() const
Definition AuthRequest.h:54
QString prompt() const
The current PAM prompt to show the user (e.g.
Definition AuthRequest.h:84
A PolicyKit authentication agent for Phosphor-based desktop shells.
Definition PolkitAgent.h:53
Definition AuthRequest.h:13