otaclient.h 592 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef OTACLIENT_H
  2. #define OTACLIENT_H
  3. #include <QThread>
  4. #include <grpcpp/grpcpp.h>
  5. #include "ota.grpc.pb.h"
  6. #include "ota.pb.h"
  7. using grpc::Channel;
  8. using grpc::ClientContext;
  9. using grpc::Status;
  10. class otaclient : public QThread
  11. {
  12. public:
  13. otaclient();
  14. private:
  15. std::string mstrserverip = "0.0.0.0";//"123.57.212.138";
  16. std::string mstrserverport = "60051";//"9000";
  17. std::string mstrVIN = "AAAAAAAAAAAAAAAAA";
  18. std::string mstrVehicleType = "GE3";
  19. std::string mstrVersion = "0.0.0";
  20. private:
  21. void run();
  22. bool mbInitOK = true;
  23. };
  24. #endif // OTACLIENT_H