Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
IAuthenticator.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <PhosphorServiceLock/phosphorservicelock_export.h>
7
8#include <QObject>
9#include <QString>
10
12
22class PHOSPHORSERVICELOCK_EXPORT IAuthenticator : public QObject
23{
24 Q_OBJECT
25
26public:
27 explicit IAuthenticator(QObject* parent = nullptr)
28 : QObject(parent)
29 {
30 }
31 ~IAuthenticator() override;
32
41 virtual void authenticate(const QString& username, const QString& password) = 0;
42
43Q_SIGNALS:
45 void succeeded();
48 void failed(const QString& reason);
49};
50
51} // namespace PhosphorServiceLock
void failed(const QString &reason)
The credentials were rejected (or the attempt could not complete); reason is a human-readable,...
void succeeded()
The credentials were accepted.
virtual void authenticate(const QString &username, const QString &password)=0
Asynchronously verify password for username.
IAuthenticator(QObject *parent=nullptr)
Definition IAuthenticator.h:27
Definition IAuthenticator.h:11