This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-08-04 13:54:30 +02:00

30 lines
693 B
C++

#ifndef AUTHENTICATOR_H
#define AUTHENTICATOR_H
#include <QUuid>
#include <QObject>
class AuthenticationReply;
class Authenticator : public QObject
{
Q_OBJECT
public:
enum AuthenticationError {
AuthenticationErrorNoError,
AuthenticationErrorTimeout,
AuthenticationErrorAborted,
AuthenticationErrorAuthenticationFailed,
AuthenticationErrorAuthenticationServerNotResponding
};
Q_ENUM(AuthenticationError)
explicit Authenticator(QObject *parent = nullptr);
virtual ~Authenticator() = 0;
public slots:
virtual AuthenticationReply *authenticate(const QUuid &clientId, const QString &token) = 0;
};
#endif // AUTHENTICATOR_H