aboutsummaryrefslogtreecommitdiff
path: root/src/gatscon/clientthread.h
blob: 3182d374351669ea3741831e0c5d6e76908f7f47 (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
#ifndef CLIENT_THREAD_H
#define CLIENT_THREAD_H

#include <QThread>
#include <QByteArray>

#include <bu/streamstack.h>
#include <gats/gatsstream.h>

namespace Gats
{
	class Object;
};

class ClientThread : public QThread
{
	Q_OBJECT;
public:
	ClientThread( QObject *pParent, const QByteArray &baHost, int iPort );
	virtual ~ClientThread();

	void send( Gats::Object *pObj );

signals:
	void recv( Gats::Object *pObj );

protected:
	virtual void run();

private:
	QByteArray baHost;
	int iPort;
	Bu::StreamStack ssCli;
	Gats::GatsStream gsCli;
};

#endif