summaryrefslogblamecommitdiffstats
path: root/src/loginrpc.h
blob: 1777ca4f796431b68eb86cd6e6dcbc6f34d1344c (plain) (tree)
























                                                                                                   
#ifndef _LOGIN_RPC_H_
#define _LOGIN_RPC_H_

#include <QObject>
#include <QString>

class QTcpServer;
class QTcpSocket;

class LoginRpc : public QObject
{
    Q_OBJECT

public:
    explicit LoginRpc(int port, QObject *parent);

private:
    void handleIncoming(QTcpSocket *sock);
    void handleCommandV1(const QString &command);

signals:
    void loginRequest(const QString &username, const QString &password, const QString &resolution);
};

#endif