FromWebAPI.h 531 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef FROMWEBAPI_H
  2. #define FROMWEBAPI_H
  3. #include "spdlog/spdlog.h"
  4. #include "lhhttpapi.h"
  5. #include "nlohmann/json.hpp"
  6. #define nJson nlohmann::json
  7. class FromEQM
  8. {
  9. public:
  10. FromEQM();
  11. ~FromEQM();
  12. /* 初始化WebAPI */
  13. bool initWebApi(const QString& url,const QString& serverIP,const QString& serID);
  14. bool test();
  15. bool test2();
  16. private:
  17. private:
  18. // std::shared_ptr<spdlog::logger> m_logger = nullptr;
  19. lhhttpapi* m_httpApi = nullptr;
  20. QString m_userToken;
  21. };
  22. #endif /* FROMWEBAPI_H */