Files
steering-wheel/TouchGFX/gui/include/gui/endurance_screen/EndurancePresenter.hpp
2024-06-10 22:09:21 +02:00

40 lines
920 B
C++

#ifndef ENDURANCEPRESENTER_HPP
#define ENDURANCEPRESENTER_HPP
#include <gui/model/ModelListener.hpp>
#include <mvp/Presenter.hpp>
using namespace touchgfx;
class EnduranceView;
class EndurancePresenter : public touchgfx::Presenter, public ModelListener {
public:
EndurancePresenter(EnduranceView &v);
/**
* The activate function is called automatically when this screen is "switched
* in" (ie. made active). Initialization logic can be placed here.
*/
virtual void activate() override;
/**
* The deactivate function is called automatically when this screen is
* "switched out" (ie. made inactive). Teardown functionality can be placed
* here.
*/
virtual void deactivate() override;
virtual ~EndurancePresenter() {}
void vehicleStateUpdated() override;
void nextScreen() override;
private:
EndurancePresenter();
EnduranceView &view;
};
#endif // ENDURANCEPRESENTER_HPP