#pragma once #include "include/EgoInterface.h" #include class CEgoClient; class CEgoController:public IEgoControl { public: CEgoController(IEgoNotify* noitfy); virtual void Login(std::string account, std::string pass) override; virtual void ReqCarList() override; virtual void Start(std::array& ar) override; virtual void OnCarConnect(int32_t peer) override; virtual void OnCarLeave() override; virtual ControlStatus CheckStatus() override; virtual void OnMoveBegin(int32_t rid,WorkArea area, int32_t no) override; //virtual void SwitchDriver(int32_t id) override; virtual std::string GetAccount() override; virtual std::string GetPassword() override; virtual std::string GetName() override; //virtual bool IsAutoClose() override; virtual void ChangeState(UserState state) override; virtual void SetReady(bool b) override; //virtual void SetCurrentPage(PageProp prop) override; private: std::unique_ptr _client; };