blob: 1293f4a17e3091744fa82323f92afe578e758521 (
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
31
32
33
34
35
36
37
38
39
40
|
/*
* Copyright (C) 2007-2013 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 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
|