summaryrefslogtreecommitdiff
path: root/server/client.h
diff options
context:
space:
mode:
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