#ifndef STREAMCONTROL_H #define STREAMCONTROL_H #include class StreamControl { public: typedef enum { STOP, RUNNING, PAUSHED }Status; StreamControl(); virtual int Process(void*); int Start(void *); int Stop(); int Pause(); StreamControl::Status CurrentStatus(); private: StreamControl::Status mStatus; std::thread *mThread; }; #endif // STREAMCONTROL_H