#ifndef EGOD_H #define EGOD_H #include "../common/comm.h" #include "remote_notify.h" #include #include Q_DECLARE_METATYPE(UserDriver); class CEgoNotify : public QObject, public IMonitroNotify { Q_OBJECT public: void OnRobot(std::unique_ptr &info) override; void OnLogin(bool bRet) override; void OnNotifyDel(int32_t peer) override; virtual void OnNotifyLeave(int32_t peer); // void OnEmergency(bool enable, bool motor, bool gear, bool turnl, bool turnR) override; // void OnAccel(int16_t accel, bool onoff) override; // void OnSteer(uint64_t steer) override; // void OnArm(int16_t flip, int16_t armL, int16_t armR, bool onoff) override; // void OnLidarData(bool isLeft, bool isDense, int32_t seq, PointXYZI* data, int32_t length) override; // virtual void OpenFullView(const char*) override; // virtual void CloseFullView() override; virtual void OnNotifyVideoFail(int32_t uid) override; virtual void OnNotifyState(int32_t uid, UserState state) override; signals: void egoLoginResult(bool rst); void egoCarAppend(const UserDriver&info); void egoNotifyDel(int32_t peer); void egoKickoff(); void egoNotifyLeave(int32_t peer); void egoNotifyFail(int32_t uid); void egoNotifyState(int32_t uid, UserState); private: // std::vector _users; }; #endif