32 #ifndef CXIGTLINKCLIENTSTREAMER_H
33 #define CXIGTLINKCLIENTSTREAMER_H
36 #include "org_custusx_core_video_Export.h"
37 #include <QAbstractSocket>
63 void setAddress(QString address,
int port);
65 virtual void startStreaming(
SenderPtr sender);
66 virtual void stopStreaming();
67 virtual bool isStreaming();
71 virtual void streamSlot() {}
77 void disconnectedSlot();
78 void errorSlot(QAbstractSocket::SocketError);
83 virtual QString hostDescription()
const;
84 bool ReceiveImage(QTcpSocket* socket, igtl::MessageHeader::Pointer& header);
85 bool ReceiveSonixStatus(QTcpSocket* socket, igtl::MessageHeader::Pointer& header);
86 bool readOneMessage();
88 void addToQueue(igtl::ImageMessage::Pointer msg);
89 bool multipleTryConnectToHost();
90 bool tryConnectToHost();
92 bool mHeadingReceived;
96 boost::shared_ptr<QTcpSocket> mSocket;
97 igtl::MessageHeader::Pointer mHeaderMsg;
106 #endif // CXIGTLINKCLIENTSTREAMER_H
boost::shared_ptr< class IGTLinkClientStreamer > IGTLinkClientStreamerPtr
igtl::SmartPointer< Self > Pointer
boost::shared_ptr< Sender > SenderPtr