147 files changed, 55964 insertions, 55946 deletions
diff --git a/tvapi/libtv/tvutils/serial_operate.h b/tvapi/libtv/tvutils/serial_operate.h index ef9fad6..07e8a00 100644 --- a/tvapi/libtv/tvutils/serial_operate.h +++ b/tvapi/libtv/tvutils/serial_operate.h @@ -1,36 +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__ +#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__
|