diff options
author | Treeki <treeki@gmail.com> | 2013-12-25 09:00:59 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-12-25 09:00:59 +0100 |
commit | b7a8b597b00eedde277836eb8530ba742edcad5d (patch) | |
tree | 1b959fa0eec02ff4e22e168aa4379b2b64575ce3 /server/client.h | |
download | bounce_qt-b7a8b597b00eedde277836eb8530ba742edcad5d.tar.gz bounce_qt-b7a8b597b00eedde277836eb8530ba742edcad5d.zip |
Diffstat (limited to '')
-rw-r--r-- | server/client.h | 28 |
1 files changed, 28 insertions, 0 deletions
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 |