12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include "include/EgoInterface.h"
- #include <memory>
- 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<IRender*, RenderPosition::ALL>& 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 ChangeState(int carID, UserState state) override ; //ChangeStateÖØй¹½¨
- virtual void SetReady(bool b) override;
- //virtual void SetCurrentPage(PageProp prop) override;
- private:
- std::unique_ptr<CEgoClient> _client;
- };
|