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
646 B
C++

#ifndef AUTHENTICATIONHANDLER_H
#define AUTHENTICATIONHANDLER_H
#include <QObject>
#include "jsonhandler.h"
#include "authentication/authenticationreply.h"
class AuthenticationHandler : public JsonHandler
{
Q_OBJECT
public:
explicit AuthenticationHandler(QObject *parent = nullptr);
~AuthenticationHandler() override = default;
QString name() const override;
Q_INVOKABLE JsonReply *Authenticate(const QVariantMap &params, const QUuid &clientId);
private:
QHash<AuthenticationReply *, JsonReply *> m_runningAuthentications;
private slots:
void onAuthenticationFinished();
};
#endif // AUTHENTICATIONHANDLER_H