#ifndef HCRECORD_H_XZL_201808081648 #define HCRECORD_H_XZL_201808081648 #include "HCNetSDK.h" #include #include #include class HcRecord { public: HcRecord() : m_lUserID(-1) {} ~HcRecord() {} int init(const char *ip, unsigned short port, const char *usrname, const char *passwd); int unInit(); int downloadfiles(const std::string &strDevID, const int nChannel, const LPNET_DVR_TIME, const LPNET_DVR_TIME, std::string &); int saveRecordFile(int userId, char *srcfile, char *destfile); std::vector getUsefulChans() const; std::string getSerialNumber() const; private: void UsefulChans(); std::string makeDirs(const std::string &strDevID, const int nChannel, const LPNET_DVR_TIME pStartTime, const LPNET_DVR_TIME pEndTime); std::string makeDir(const std::string &strType, const std::string &strDevID, const int nChannel, const LPNET_DVR_TIME pStartTime, const LPNET_DVR_TIME pEndTime); std::string toString(const int src); int Downloadfile(const std::string &, const int nChannel, const LPNET_DVR_TIME, const LPNET_DVR_TIME, std::string &); int RecursiveByTimeDownloadfiles(const std::string &, const int nChannel, QDateTime, QDateTime, std::string &); private: LONG m_lUserID; std::vector m_vecUsefulChans; std::string devSerialNumber; }; #endif