Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

67 rader
2.3 KiB

  1. #pragma once
  2. #include "JObject_NetSDK.h"
  3. NS_NETSDK_CFG_BEGIN
  4. #define JK_NetWork_NetCommon "NetWork.NetCommon"
  5. class NetWork_NetCommon : public JObject
  6. {
  7. public:
  8. JStrObj DeviceID;
  9. JIntObj DeviceType;
  10. JStrObj DvrMac;
  11. JIntObj EncryptType;
  12. JStrObj GateWay;
  13. JStrObj HostIP;
  14. JStrObj HostName;
  15. JIntObj HttpPort;
  16. JStrObj MAC;
  17. JIntObj MaxBps;
  18. JIntObj MonMode;
  19. JStrObj Password;
  20. JStrObj SN;
  21. JIntObj SSLPort;
  22. JStrObj Submask;
  23. JIntObj TCPMaxConn;
  24. JIntObj TCPPort;
  25. JIntObj TransferPlan;
  26. JIntObj UDPPort;
  27. JBoolObj UseHSDownLoad;
  28. JStrObj Username;
  29. JStrObj Version;
  30. JStrObj BuildDate;
  31. public:
  32. NetWork_NetCommon(JObject *pParent = NULL, const char *szName = JK_NetWork_NetCommon):
  33. JObject(pParent,szName),
  34. DeviceID(this, "DeviceID"),
  35. DeviceType(this, "DeviceType"),
  36. DvrMac(this, "DvrMac"),
  37. EncryptType(this, "EncryptType"),
  38. GateWay(this, "GateWay"),
  39. HostIP(this, "HostIP"),
  40. HostName(this, "HostName"),
  41. HttpPort(this, "HttpPort"),
  42. MAC(this, "MAC"),
  43. MaxBps(this, "MaxBps"),
  44. MonMode(this, "MonMode"),
  45. Password(this, "Password"),
  46. SN(this, "SN"),
  47. SSLPort(this, "SSLPort"),
  48. Submask(this, "Submask"),
  49. TCPMaxConn(this, "TCPMaxConn"),
  50. TCPPort(this, "TCPPort"),
  51. TransferPlan(this, "TransferPlan"),
  52. UDPPort(this, "UDPPort"),
  53. UseHSDownLoad(this, "UseHSDownLoad"),
  54. Username(this, "Username"),
  55. Version(this, "Version"),
  56. BuildDate(this, "BuildDate"){
  57. const char *szInit = "{ \"Name\" : \"NetWork.NetCommon\", \"NetWork.NetCommon\" : { \"DeviceID\" : \"0x00000000\", \"DeviceType\" : 65535, \"DvrMac\" : \"50:7B:9D:C2:04:FA\", \"EncryptType\" : 1, \"GateWay\" : \"0x01200a0a\", \"HostIP\" : \"0x010aa8c0\", \"HostName\" : \"robot_5002\", \"HttpPort\" : 80, \"MAC\" : \"ac:a2:13:0e:50:02\", \"MaxBps\" : 0, \"MonMode\" : 0, \"Password\" : \"QyZfVmgd\", \"SN\" : \"\", \"SSLPort\" : 8443, \"Submask\" : \"0x00f0ffff\", \"TCPMaxConn\" : 10, \"TCPPort\" : 34567, \"TransferPlan\" : 0, \"UDPPort\" : 34562, \"UseHSDownLoad\" : false, \"Username\" : \"admin\", \"Version\" : \"V4.02.R12.E1207810.12002.130302.00000\", \"BuildDate\" : \"2016-12-30 10:53:37\" }, \"Ret\" : 100, \"SessionID\" : \"0x00000000\" }";
  58. this->Parse(szInit);
  59. };
  60. ~NetWork_NetCommon(void){};
  61. };
  62. NS_NETSDK_CFG_END