/*! * \file XorayaConnector.h * \author S. Eisenhauer * \date 27.10.2011 * \brief Header of CXorayaConnector */ #ifndef XORAYACONNECTOR_H_ #define XORAYACONNECTOR_H_ #include #include "TcpServer.h" class CPluginExecutor; extern boost::asio::io_service g_xIoService; /// network adaptor on target class CXorayaConnector { public: /// constructor /// \param[in] pxExecutor pointer to the main application /// \param[in] xTcpServer reference to the tcp server object to use CXorayaConnector(CPluginExecutor* pxExecutor, CTcpServer& xTcpServer); /*! * \brief copy constructor * \param[in] other reference to other object to construct copy from */ CXorayaConnector(const CXorayaConnector& other); /// destructor virtual ~CXorayaConnector(void); /// function of the network task. Async IO runs in this thread void operator()(); /// stop network task void vStop(); /*! * \brief upload a logged message to CanEasy * \param[in] stLogMsg the logged message to upload */ void vUploadLogMessage(const tstLogMessage& stLogMsg); private: CPluginExecutor* m_pxExecutor; CTcpServer& m_xTcpServer; }; #endif /* XORAYACONNECTOR_H_ */