diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-05-17 01:24:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-05-17 01:24:51 +0000 |
commit | efcbdb7a0347b4399cbabacf3cbea432eeafb17b (patch) | |
tree | d468a9d8e129cba0cef68a09421c0e21c720ede6 /src/gatscon/clientthread.h | |
parent | 02c60c6720f41bcfc367d02ae4c655b651642991 (diff) | |
download | libgats-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.h | 37 |
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 | |||
10 | namespace Gats | ||
11 | { | ||
12 | class Object; | ||
13 | }; | ||
14 | |||
15 | class ClientThread : public QThread | ||
16 | { | ||
17 | Q_OBJECT; | ||
18 | public: | ||
19 | ClientThread( QObject *pParent, const QByteArray &baHost, int iPort ); | ||
20 | virtual ~ClientThread(); | ||
21 | |||
22 | void send( Gats::Object *pObj ); | ||
23 | |||
24 | signals: | ||
25 | void recv( Gats::Object *pObj ); | ||
26 | |||
27 | protected: | ||
28 | virtual void run(); | ||
29 | |||
30 | private: | ||
31 | QByteArray baHost; | ||
32 | int iPort; | ||
33 | Bu::StreamStack ssCli; | ||
34 | Gats::GatsStream gsCli; | ||
35 | }; | ||
36 | |||
37 | #endif | ||