stw24/TouchGFX/gui/include/gui/ami_screen/AMIPresenter.hpp

39 lines
812 B
C++

#ifndef AMIPRESENTER_HPP
#define AMIPRESENTER_HPP
#include <gui/model/ModelListener.hpp>
#include <mvp/Presenter.hpp>
using namespace touchgfx;
class AMIView;
class AMIPresenter : public touchgfx::Presenter, public ModelListener {
public:
AMIPresenter(AMIView &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();
/**
* The deactivate function is called automatically when this screen is
* "switched out" (ie. made inactive). Teardown functionality can be placed
* here.
*/
virtual void deactivate();
virtual ~AMIPresenter(){};
void vehicleStateUpdated() override;
private:
AMIPresenter();
AMIView &view;
};
#endif // AMIPRESENTER_HPP