summaryrefslogtreecommitdiff
path: root/server/client.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-12-25 09:00:59 +0100
committerTreeki <treeki@gmail.com>2013-12-25 09:00:59 +0100
commitb7a8b597b00eedde277836eb8530ba742edcad5d (patch)
tree1b959fa0eec02ff4e22e168aa4379b2b64575ce3 /server/client.h
downloadbounce_qt-b7a8b597b00eedde277836eb8530ba742edcad5d.tar.gz
bounce_qt-b7a8b597b00eedde277836eb8530ba742edcad5d.zip
commit initial bitsHEADmaster
Diffstat (limited to '')
-rw-r--r--server/client.h28
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