diff options
Diffstat (limited to 'lib/cpp/src/thrift/qt/TQTcpServer.h')
-rw-r--r-- | lib/cpp/src/thrift/qt/TQTcpServer.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/lib/cpp/src/thrift/qt/TQTcpServer.h b/lib/cpp/src/thrift/qt/TQTcpServer.h index 2ef64a75e..3403f1e66 100644 --- a/lib/cpp/src/thrift/qt/TQTcpServer.h +++ b/lib/cpp/src/thrift/qt/TQTcpServer.h @@ -25,11 +25,17 @@ #include <boost/shared_ptr.hpp> -namespace apache { namespace thrift { namespace protocol { +namespace apache { +namespace thrift { +namespace protocol { class TProtocolFactory; -}}} // apache::thrift::protocol +} +} +} // apache::thrift::protocol -namespace apache { namespace thrift { namespace async { +namespace apache { +namespace thrift { +namespace async { class TAsyncProcessor; @@ -39,20 +45,20 @@ class TAsyncProcessor; * processor and a protocol factory, and then run the Qt event loop. */ class TQTcpServer : public QObject { - Q_OBJECT - public: + Q_OBJECT +public: TQTcpServer(boost::shared_ptr<QTcpServer> server, boost::shared_ptr<TAsyncProcessor> processor, boost::shared_ptr<apache::thrift::protocol::TProtocolFactory> protocolFactory, QT_PREPEND_NAMESPACE(QObject)* parent = NULL); virtual ~TQTcpServer(); - private Q_SLOTS: +private Q_SLOTS: void processIncoming(); void beginDecode(); void socketClosed(); - private: +private: TQTcpServer(const TQTcpServer&); TQTcpServer& operator=(const TQTcpServer&); @@ -66,7 +72,8 @@ class TQTcpServer : public QObject { std::map<QT_PREPEND_NAMESPACE(QTcpSocket)*, boost::shared_ptr<ConnectionContext> > ctxMap_; }; - -}}} // apache::thrift::async +} +} +} // apache::thrift::async #endif // #ifndef _THRIFT_TASYNC_QTCP_SERVER_H_ |