#ifndef _LOGIN_RPC_H_ #define _LOGIN_RPC_H_ #include #include 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