aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/gatscon/clientthread.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-09 17:20:11 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-09 17:20:11 +0000
commitd534a56d95bca7bdd812be024d9eacba4734e2b7 (patch)
treef9b98ee2b80e645a7b54e7934882be6c9f73c165 /c++-libbu++/src/gatscon/clientthread.h
parent61ccc86fdf06f12cb72a8b7e65286f812cf62154 (diff)
downloadlibgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.tar.gz
libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.tar.bz2
libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.tar.xz
libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.zip
Many changes: tabconv'd the C++ code, added a license, BSD, and docs.
Diffstat (limited to '')
-rw-r--r--c++-libbu++/src/gatscon/clientthread.h29
1 files changed, 18 insertions, 11 deletions
diff --git a/c++-libbu++/src/gatscon/clientthread.h b/c++-libbu++/src/gatscon/clientthread.h
index 3182d37..a4343ee 100644
--- a/c++-libbu++/src/gatscon/clientthread.h
+++ b/c++-libbu++/src/gatscon/clientthread.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2012 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libgats library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef CLIENT_THREAD_H 8#ifndef CLIENT_THREAD_H
2#define CLIENT_THREAD_H 9#define CLIENT_THREAD_H
3 10
@@ -9,29 +16,29 @@
9 16
10namespace Gats 17namespace Gats
11{ 18{
12 class Object; 19 class Object;
13}; 20};
14 21
15class ClientThread : public QThread 22class ClientThread : public QThread
16{ 23{
17 Q_OBJECT; 24 Q_OBJECT;
18public: 25public:
19 ClientThread( QObject *pParent, const QByteArray &baHost, int iPort ); 26 ClientThread( QObject *pParent, const QByteArray &baHost, int iPort );
20 virtual ~ClientThread(); 27 virtual ~ClientThread();
21 28
22 void send( Gats::Object *pObj ); 29 void send( Gats::Object *pObj );
23 30
24signals: 31signals:
25 void recv( Gats::Object *pObj ); 32 void recv( Gats::Object *pObj );
26 33
27protected: 34protected:
28 virtual void run(); 35 virtual void run();
29 36
30private: 37private:
31 QByteArray baHost; 38 QByteArray baHost;
32 int iPort; 39 int iPort;
33 Bu::StreamStack ssCli; 40 Bu::StreamStack ssCli;
34 Gats::GatsStream gsCli; 41 Gats::GatsStream gsCli;
35}; 42};
36 43
37#endif 44#endif