diff options
Diffstat (limited to '')
-rw-r--r-- | src/gatscon/clientwidget.cpp | 24 |
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 | |||
4 | ClientWidget::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 | |||
21 | ClientWidget::~ClientWidget() | ||
22 | { | ||
23 | } | ||
24 | |||