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 bool startStreaming(
SenderPtr sender) = 0;
69 virtual void stopStreaming() = 0;
71 virtual QString getType() = 0;
73 void setSendInterval(
int milliseconds);
74 int getSendInterval()
const;
77 virtual void streamSlot() = 0;
80 void setInitialized(
bool initialized);
82 void createSendTimer(
bool singleshot =
false);
93 typedef std::map<QString, QString>
StringMap;
110 virtual QStringList getArgumentDescription() = 0;
112 virtual void initialize(
StringMap arguments);
115 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