stw24/TouchGFX/gui/include/gui/missionselect_screen/MissionSelectPresenter.hpp

40 lines
943 B
C++

#ifndef MISSIONSELECTPRESENTER_HPP
#define MISSIONSELECTPRESENTER_HPP
#include <gui/model/ModelListener.hpp>
#include <mvp/Presenter.hpp>
using namespace touchgfx;
class MissionSelectView;
class MissionSelectPresenter : public touchgfx::Presenter,
public ModelListener {
public:
MissionSelectPresenter(MissionSelectView &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 ~MissionSelectPresenter(){};
void vehicleStateUpdated() override;
private:
MissionSelectPresenter();
MissionSelectView &view;
};
#endif // MISSIONSELECTPRESENTER_HPP