#ifndef __BASICMEDIASOURCE_H_INCL__ #define __BASICMEDIASOURCE_H_INCL__ #include #include "basicMediaDestination.h" #include "basicThread.h" /** * TODO: Add class description * * @author Gagua */ class basicMediaSource : public basicThread { private: protected: //mediaPorts m_vCorossBar; basicMediaDestination *m_pMediaDestination; MediaStateStatus m_eMediaStatus; bool m_bStreamingSource; public: // Constructor basicMediaSource(); // Destructor virtual ~basicMediaSource(); bool attachDestination(basicMediaDestination *Viewer){ if (Viewer != NULL){ m_pMediaDestination = Viewer; return true; }; return false; }; void setStreaming(bool T){ m_bStreamingSource = T; }; virtual bool _stop(void){ return true; }; MediaStateStatus getStatus( void ){ return m_eMediaStatus;}; // Copy constructor // TODO: Uncomment the copy constructor when you need it. //basicMediaSource(const basicMediaSource& src); // Assignment operator // TODO: Uncomment the assignment operator when you need it. //basicMediaSource& operator=(const basicMediaSource& src); }; // Constructor implementation inline basicMediaSource::basicMediaSource(): basicThread(){ m_pMediaDestination = NULL; m_eMediaStatus = MS_UNDEFINED; } // Destructor implementation inline basicMediaSource::~basicMediaSource(){ } typedef vector mediaSourceCollection; #endif // __BASICMEDIASOURCE_H_INCL__