36 #include "cxGrabberExport.h"
40 #include <QStringList>
44 #include "boost/shared_ptr.hpp"
50 typedef boost::shared_ptr<class Sender>
SenderPtr;
51 typedef boost::shared_ptr<class Streamer>
StreamerPtr;
60 class cxGrabber_EXPORT
Streamer :
public QObject
68 virtual void startStreaming(
SenderPtr sender) = 0;
69 virtual void stopStreaming() = 0;
70 virtual bool isStreaming() = 0;
72 void setSendInterval(
int milliseconds);
73 int getSendInterval()
const;
79 virtual void streamSlot() = 0;
82 void setInitialized(
bool initialized);
84 void createSendTimer(
bool singleshot =
false);
95 typedef std::map<QString, QString>
StringMap;
112 virtual QStringList getArgumentDescription() = 0;
113 virtual QString getType() = 0;
115 virtual void initialize(
StringMap arguments);
118 virtual void streamSlot() {std::cout <<
"THIS SHOULD NOT HAPPEN...." << std::endl;};
virtual void streamSlot()
std::map< QString, QString > StringMap
boost::shared_ptr< CommandLineStreamer > CommandLineStreamerPtr
boost::shared_ptr< Sender > SenderPtr
virtual ~CommandLineStreamer()
boost::shared_ptr< class Streamer > StreamerPtr