aboutsummaryrefslogtreecommitdiff
path: root/src/gatscon/clientwidget.cpp
blob: 4872d9d560f8178188a479ee0b252a7262f29561 (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
#include "clientwidget.h"
#include "connectdlg.h"

ClientWidget::ClientWidget( QWidget *pParent ) :
	QWidget( pParent ),
	gsCli( ssCli )
{
	setupUi( this );

	ConnectDlg dlg( this );
	dlg.exec();

	ssCli.setStream(
		new Bu::TcpSocket( dlg.getHost().constData(), dlg.getPort() )
		);

	Gats::Object *pObj = gsCli.readObject();
	gatsToTree( twHistory, pObj );
}

ClientWidget::~ClientWidget()
{
}