6#include <PhosphorServiceLock/phosphorservicelock_export.h>
38 Q_PROPERTY(
bool supported READ
isSupported CONSTANT)
76 Q_INVOKABLE
void unlock(const QString& password);
103 std::unique_ptr<Private> d;
void unlocked()
The session was successfully unlocked after authentication.
void unlock(const QString &password)
Attempt to unlock by authenticating the session user with password.
void authenticationFailed(const QString &reason)
An unlock() attempt was rejected; reason is a human-readable, non-sensitive explanation.
QString userName() const
The same local account that PAM authenticates, resolved from the process uid.
State state() const
The current lock state.
bool isSupported() const
Whether the compositor advertises the ext-session-lock-v1 protocol this service builds on.
LockService(QObject *parent=nullptr)
State
The lock lifecycle.
Definition LockService.h:44
bool isLocked() const
True while the session is locked (whether idle or authenticating).
void stateChanged()
state() changed.
void finishUnlock()
Release the compositor lock after a successful authentication.
void aboutToUnlock()
Authentication succeeded and the lock is about to be released.
void lock()
Request that the compositor lock the session.
Definition IAuthenticator.h:11