#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