aboutsummaryrefslogtreecommitdiff
path: root/src/gatscon/clientwidget.h
blob: 06c154ddf9516b280b1a65ae8113c0bba348341a (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 CLIENT_WIDGET_H
#define CLIENT_WIDGET_H

#include <QObject>
#include "ui_clientwidget.h"
#include "iobase.h"

namespace Gats
{
	class Object;
};

class ClientWidget : public QWidget, protected Ui::ClientWidget, public IoBase
{
	Q_OBJECT;
public:
	ClientWidget( QWidget *pParent, const QByteArray &baHost, int iPort );
	virtual ~ClientWidget();

	virtual void saveTo( const QString &sFile );

public slots:
	void send();
	void recv( Gats::Object *pObj );

private:
	class ClientThread *pCli;
};

#endif