#ifndef PROXY_WIDGET_H #define PROXY_WIDGET_H #include "ui_proxywidget.h" #include "iobase.h" namespace Gats { class Object; }; class ProxyWidget : public QWidget, protected Ui::ProxyWidget, public IoBase { Q_OBJECT; public: ProxyWidget( QWidget *pParent, int iPortIn, const QByteArray baHost, int iPortOut ); virtual ~ProxyWidget(); virtual void saveTo( const QString &sFile ); public slots: void sendToClient(); void sendToServer(); void clientRecv( Gats::Object *pObj ); void hostRecv( Gats::Object *pObj ); void gotConnection(); private: class ProxyThread *pPrx; }; #endif