FromWebAPI.h 435 B

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