mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
PB: server compiles again, standalone RemoteClient is able to log in
This commit is contained in:
parent
10018280e5
commit
d3b96b1a88
39 changed files with 988 additions and 807 deletions
|
|
@ -5,8 +5,6 @@
|
|||
#include "abstractclient.h"
|
||||
|
||||
class QTimer;
|
||||
class QXmlStreamReader;
|
||||
class QXmlStreamWriter;
|
||||
|
||||
class RemoteClient : public AbstractClient {
|
||||
Q_OBJECT
|
||||
|
|
@ -21,15 +19,18 @@ private slots:
|
|||
void readData();
|
||||
void slotSocketError(QAbstractSocket::SocketError error);
|
||||
void ping();
|
||||
void loginResponse(ProtocolResponse *response);
|
||||
void processServerIdentificationEvent(const Event_ServerIdentification &event);
|
||||
void loginResponse(const Response &response);
|
||||
private:
|
||||
static const int maxTimeout = 10;
|
||||
int timeRunning, lastDataReceived;
|
||||
|
||||
QByteArray inputBuffer;
|
||||
bool messageInProgress;
|
||||
int messageLength;
|
||||
|
||||
QTimer *timer;
|
||||
QTcpSocket *socket;
|
||||
QXmlStreamReader *xmlReader;
|
||||
TopLevelProtocolItem *topLevelItem;
|
||||
|
||||
void sendCommandContainer(const CommandContainer &cont);
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue