aboutsummaryrefslogtreecommitdiff
path: root/src/gatscon/proxywidget.h
blob: 0ef1fd4a8c6ff96edd2dd88cf410300db10c4be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef PROXY_WIDGET_H
#define PROXY_WIDGET_H

#include "ui_proxywidget.h"

namespace Gats
{
	class Object;
};

class ProxyWidget : public QWidget, protected Ui::ProxyWidget
{
	Q_OBJECT;
public:
	ProxyWidget( QWidget *pParent, int iPortIn, const QByteArray baHost,
			int iPortOut );
	virtual ~ProxyWidget();

public slots:
	void sendToClient();
	void sendToServer();
	void clientRecv( Gats::Object *pObj );
	void hostRecv( Gats::Object *pObj );
	void gotConnection();

private:
	class ProxyThread *pPrx;
};

#endif