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-09 14:19:40 +02:00

34 lines
677 B
C++

#ifndef AUTHENTICATIONHANDLER_H
#define AUTHENTICATIONHANDLER_H
#include <QObject>
#include "jsonhandler.h"
#include "authentication/authenticationreply.h"
namespace remoteproxy {
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, ProxyClient *proxyClient);
private:
QHash<AuthenticationReply *, JsonReply *> m_runningAuthentications;
private slots:
void onAuthenticationFinished();
};
}
#endif // AUTHENTICATIONHANDLER_H