From 02c60c6720f41bcfc367d02ae4c655b651642991 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 16 May 2011 20:51:20 +0000 Subject: Almost there! I'm adding a qtbenc-like program for gats, only cooler. It'll really help us debug gats based protocols and look at gats files, and the like. --- src/gatscon/clientwidget.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/gatscon/clientwidget.cpp (limited to 'src/gatscon/clientwidget.cpp') diff --git a/src/gatscon/clientwidget.cpp b/src/gatscon/clientwidget.cpp new file mode 100644 index 0000000..4872d9d --- /dev/null +++ b/src/gatscon/clientwidget.cpp @@ -0,0 +1,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() +{ +} + -- cgit v1.2.3