11 #ifndef CXIGTLINKCLIENTSTREAMER_H 12 #define CXIGTLINKCLIENTSTREAMER_H 15 #include "org_custusx_core_video_Export.h" 16 #include <QAbstractSocket> 42 void setAddress(QString address,
int port);
44 virtual void startStreaming(
SenderPtr sender);
45 virtual void stopStreaming();
46 virtual bool isStreaming();
50 virtual void streamSlot() {}
56 void disconnectedSlot();
57 void errorSlot(QAbstractSocket::SocketError);
62 virtual QString hostDescription()
const;
63 bool ReceiveImage(QTcpSocket* socket, igtl::MessageHeader::Pointer& header);
64 bool ReceiveSonixStatus(QTcpSocket* socket, igtl::MessageHeader::Pointer& header);
65 bool readOneMessage();
67 void addToQueue(igtl::ImageMessage::Pointer msg);
68 bool multipleTryConnectToHost();
69 bool tryConnectToHost();
71 bool mHeadingReceived;
75 boost::shared_ptr<QTcpSocket> mSocket;
76 igtl::MessageHeader::Pointer mHeaderMsg;
85 #endif // CXIGTLINKCLIENTSTREAMER_H
boost::shared_ptr< class IGTLinkClientStreamer > IGTLinkClientStreamerPtr
igtl::SmartPointer< Self > Pointer
boost::shared_ptr< Sender > SenderPtr
Namespace for all CustusX production code.