aboutsummaryrefslogtreecommitdiff
path: root/src/gatscon/clientthread.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-05-17 01:24:51 +0000
committerMike Buland <eichlan@xagasoft.com>2011-05-17 01:24:51 +0000
commitefcbdb7a0347b4399cbabacf3cbea432eeafb17b (patch)
treed468a9d8e129cba0cef68a09421c0e21c720ede6 /src/gatscon/clientthread.h
parent02c60c6720f41bcfc367d02ae4c655b651642991 (diff)
downloadlibgats-efcbdb7a0347b4399cbabacf3cbea432eeafb17b.tar.gz
libgats-efcbdb7a0347b4399cbabacf3cbea432eeafb17b.tar.bz2
libgats-efcbdb7a0347b4399cbabacf3cbea432eeafb17b.tar.xz
libgats-efcbdb7a0347b4399cbabacf3cbea432eeafb17b.zip
Gats::Object now has a strToGats function, it's pretty slick, it takes a string
and produces a fully formed gats tree. Also, gatscon now can interact with a server directly.
Diffstat (limited to 'src/gatscon/clientthread.h')
-rw-r--r--src/gatscon/clientthread.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/gatscon/clientthread.h b/src/gatscon/clientthread.h
new file mode 100644
index 0000000..3182d37
--- /dev/null
+++ b/src/gatscon/clientthread.h
@@ -0,0 +1,37 @@
1#ifndef CLIENT_THREAD_H
2#define CLIENT_THREAD_H
3
4#include <QThread>
5#include <QByteArray>
6
7#include <bu/streamstack.h>
8#include <gats/gatsstream.h>
9
10namespace Gats
11{
12 class Object;
13};
14
15class ClientThread : public QThread
16{
17 Q_OBJECT;
18public:
19 ClientThread( QObject *pParent, const QByteArray &baHost, int iPort );
20 virtual ~ClientThread();
21
22 void send( Gats::Object *pObj );
23
24signals:
25 void recv( Gats::Object *pObj );
26
27protected:
28 virtual void run();
29
30private:
31 QByteArray baHost;
32 int iPort;
33 Bu::StreamStack ssCli;
34 Gats::GatsStream gsCli;
35};
36
37#endif