aboutsummaryrefslogtreecommitdiff
path: root/src/gatscon/clientwidget.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-05-16 20:51:20 +0000
committerMike Buland <eichlan@xagasoft.com>2011-05-16 20:51:20 +0000
commit02c60c6720f41bcfc367d02ae4c655b651642991 (patch)
treebbda9db56f71c846e5712bcbf44a52f475795f0a /src/gatscon/clientwidget.cpp
parent09e3102ffba4b9ee11d988f95c04d344790127db (diff)
downloadlibgats-02c60c6720f41bcfc367d02ae4c655b651642991.tar.gz
libgats-02c60c6720f41bcfc367d02ae4c655b651642991.tar.bz2
libgats-02c60c6720f41bcfc367d02ae4c655b651642991.tar.xz
libgats-02c60c6720f41bcfc367d02ae4c655b651642991.zip
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.
Diffstat (limited to 'src/gatscon/clientwidget.cpp')
-rw-r--r--src/gatscon/clientwidget.cpp24
1 files changed, 24 insertions, 0 deletions
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 @@
1#include "clientwidget.h"
2#include "connectdlg.h"
3
4ClientWidget::ClientWidget( QWidget *pParent ) :
5 QWidget( pParent ),
6 gsCli( ssCli )
7{
8 setupUi( this );
9
10 ConnectDlg dlg( this );
11 dlg.exec();
12
13 ssCli.setStream(
14 new Bu::TcpSocket( dlg.getHost().constData(), dlg.getPort() )
15 );
16
17 Gats::Object *pObj = gsCli.readObject();
18 gatsToTree( twHistory, pObj );
19}
20
21ClientWidget::~ClientWidget()
22{
23}
24