169 files changed, 64432 insertions, 116 deletions
diff --git a/tvapi/libtv/tvutils/serial_operate.h b/tvapi/libtv/tvutils/serial_operate.h new file mode 100644 index 0000000..ef9fad6 --- a/dev/null +++ b/tvapi/libtv/tvutils/serial_operate.h @@ -0,0 +1,36 @@ +#ifndef __SERIAL_OPERATE_H__ +#define __SERIAL_OPERATE_H__ +#include "tvutils/CThread.h" + +class CTv2d4GHeadSetDetect: public CThread +{ + +public: + CTv2d4GHeadSetDetect(); + ~CTv2d4GHeadSetDetect(); + + int startDetect(); + + class IHeadSetObserver + { + public: + IHeadSetObserver() + {}; + virtual ~IHeadSetObserver() + {}; + virtual void onHeadSetDetect(int state, int para) {}; + virtual void onThermalDetect(int state) {}; + + }; + void setObserver ( IHeadSetObserver *pOb ) + { + mpObserver = pOb; + }; + +private: + bool threadLoop(); + IHeadSetObserver *mpObserver; + +}; + +#endif//__SERIAL_OPERATE_H__ |