THRIFT-1348 C++ Qt bindings
Patch: Doug Rosvick
qt-cleanup.patch applied
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1243124 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/qt/TQTcpServer.h b/lib/cpp/src/qt/TQTcpServer.h
index 82bec39..7838357 100644
--- a/lib/cpp/src/qt/TQTcpServer.h
+++ b/lib/cpp/src/qt/TQTcpServer.h
@@ -6,10 +6,7 @@
#include <boost/shared_ptr.hpp>
-#include <tr1/functional>
-
namespace apache { namespace thrift { namespace protocol {
-class TProtocol;
class TProtocolFactory;
}}} // apache::thrift::protocol
@@ -17,6 +14,11 @@
class TAsyncProcessor;
+/**
+ * Server that uses Qt to listen for connections.
+ * Simply give it a QTcpServer that is listening, along with an async
+ * processor and a protocol factory, and then run the Qt event loop.
+ */
class TQTcpServer : public QObject {
Q_OBJECT
public:
@@ -32,6 +34,9 @@
void socketClosed();
private:
+ TQTcpServer(const TQTcpServer&);
+ TQTcpServer& operator=(const TQTcpServer&);
+
class ConnectionContext;
void finish(boost::shared_ptr<ConnectionContext> ctx, bool healthy);