aboutsummaryrefslogtreecommitdiff
path: root/src/gatscon/proxywidget.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-05-17 04:18:13 +0000
committerMike Buland <eichlan@xagasoft.com>2011-05-17 04:18:13 +0000
commit6aefa6632023c99c5b91bae0e099df94fa69d890 (patch)
tree6ac83b347cc70dca827c887f0046924dabec042d /src/gatscon/proxywidget.h
parentefcbdb7a0347b4399cbabacf3cbea432eeafb17b (diff)
downloadlibgats-6aefa6632023c99c5b91bae0e099df94fa69d890.tar.gz
libgats-6aefa6632023c99c5b91bae0e099df94fa69d890.tar.bz2
libgats-6aefa6632023c99c5b91bae0e099df94fa69d890.tar.xz
libgats-6aefa6632023c99c5b91bae0e099df94fa69d890.zip
GatsCon now supports proxying, and way better than qtbenc ever did. Not only
does it proxy, but you can inject your own messages going to the client or host. Pretty slick, really. Next up, reading and creating files.
Diffstat (limited to 'src/gatscon/proxywidget.h')
-rw-r--r--src/gatscon/proxywidget.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/gatscon/proxywidget.h b/src/gatscon/proxywidget.h
new file mode 100644
index 0000000..0ef1fd4
--- /dev/null
+++ b/src/gatscon/proxywidget.h
@@ -0,0 +1,30 @@
1#ifndef PROXY_WIDGET_H
2#define PROXY_WIDGET_H
3
4#include "ui_proxywidget.h"
5
6namespace Gats
7{
8 class Object;
9};
10
11class ProxyWidget : public QWidget, protected Ui::ProxyWidget
12{
13 Q_OBJECT;
14public:
15 ProxyWidget( QWidget *pParent, int iPortIn, const QByteArray baHost,
16 int iPortOut );
17 virtual ~ProxyWidget();
18
19public slots:
20 void sendToClient();
21 void sendToServer();
22 void clientRecv( Gats::Object *pObj );
23 void hostRecv( Gats::Object *pObj );
24 void gotConnection();
25
26private:
27 class ProxyThread *pPrx;
28};
29
30#endif