aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/gatscon/clientwidget.h
blob: 8d240bd333b4bfdf130dc7f10af0bb8a61c87a42 (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
31
32
33
34
35
36
37
/*
 * Copyright (C) 2007-2013 Xagasoft, All rights reserved.
 *
 * This file is part of the libgats library and is released under the
 * terms of the license contained in the file LICENSE.
 */

#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