/* * Copyright (C) 2007-2012 Xagasoft, All rights reserved. * * This file is part of the libgats library and is released under the * terms of the license contained in the file LICENSE. */ #ifndef CLIENT_THREAD_H #define CLIENT_THREAD_H #include #include #include #include namespace Gats { class Object; }; class ClientThread : public QThread { Q_OBJECT; public: ClientThread( QObject *pParent, const QByteArray &baHost, int iPort ); virtual ~ClientThread(); void send( Gats::Object *pObj ); signals: void recv( Gats::Object *pObj ); protected: virtual void run(); private: QByteArray baHost; int iPort; Bu::StreamStack ssCli; Gats::GatsStream gsCli; }; #endif