From b7a8b597b00eedde277836eb8530ba742edcad5d Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 25 Dec 2013 09:00:59 +0100 Subject: commit initial bits --- server/client.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 server/client.h (limited to 'server/client.h') diff --git a/server/client.h b/server/client.h new file mode 100644 index 0000000..82875d1 --- /dev/null +++ b/server/client.h @@ -0,0 +1,28 @@ +#ifndef CLIENT_H +#define CLIENT_H + +#include "socket.h" + +class Client : public Socket +{ + Q_OBJECT +public: + explicit Client(QObject *parent = 0); + + void connectToHost(const QString &hostname, int port); + +public: + void consoleInput(const QString &message); +signals: + void consoleOutput(const QString &message); + +protected: + virtual void handlePacket(int type, PacketReader &reader); + virtual void socketConnected(); + + +private: + void sendLoginPacket(const QString &username, const QString &password, const quint8 *sessionKey); +}; + +#endif // CLIENT_H -- cgit v1.2.3