#include "IView.h" #include "httplib.h" #include "ViewPlugin.h" namespace hp = httplib; class HttpView : public IView { public: HttpView(); ~HttpView(); void Exec() const final; void Exit() const final; // 查看证书 void About() const; // 从视图获取证书 void GetLicense(char* lic, uint16_t* len) const; // 输出硬件标识 void GetMachineCode(char* code, uint16_t* len) const override; void GetAuthTime(char start[10], char end[10]) const override; // 获取软件版本号 void GetAppVersion(char* ver, uint16_t* len) const override; // 获取软件名称 void GetAppName(char* name, uint16_t* len) const override; private: mutable hp::Server m_svr; uint16_t m_port = 1234; }; LOAD_INTERFACE