blob: 1777ca4f796431b68eb86cd6e6dcbc6f34d1344c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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
|