You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 line
736 B

  1. #pragma once
  2. #include "JObject_NetSDK.h"
  3. #include "EventHandler.h"
  4. NS_NETSDK_CFG_BEGIN
  5. #define JK_Detect_MotionDetect "Detect.MotionDetect"
  6. class Detect_MotionDetect: public JObject //移动侦测
  7. {
  8. public:
  9. JBoolObj Enable; ///是否开启
  10. EventHandler mEventHandler; ///联动事件
  11. JIntObj Level; ///灵敏度
  12. JObjArray<JIntHex> Region; /// 区域,每一行使用一个二进制串
  13. public:
  14. Detect_MotionDetect(JObject *pParent = NULL, const char *szName = JK_Detect_MotionDetect):
  15. JObject(pParent,szName),
  16. Enable(this, "Enable"),
  17. mEventHandler(this, "EventHandler"),
  18. Level(this, "Level"),
  19. Region(this, "Region"){
  20. };
  21. ~Detect_MotionDetect(void){};
  22. };
  23. NS_NETSDK_CFG_END