151 files changed, 45277 insertions, 47437 deletions
diff --git a/tvapi/libtv/tvutils/serial_operate.h b/tvapi/libtv/tvutils/serial_operate.h index 07e8a00..feb1c9a 100644 --- a/tvapi/libtv/tvutils/serial_operate.h +++ b/tvapi/libtv/tvutils/serial_operate.h @@ -1,36 +1,34 @@ -#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__ |