37 lines
896 B
C++
37 lines
896 B
C++
#ifndef VEHICLECONFIGPRESENTER_HPP
|
|
#define VEHICLECONFIGPRESENTER_HPP
|
|
|
|
#include <gui/model/ModelListener.hpp>
|
|
#include <mvp/Presenter.hpp>
|
|
|
|
using namespace touchgfx;
|
|
|
|
class VehicleConfigView;
|
|
|
|
class VehicleConfigPresenter : public touchgfx::Presenter, public ModelListener
|
|
{
|
|
public:
|
|
VehicleConfigPresenter(VehicleConfigView& 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 ~VehicleConfigPresenter() {};
|
|
|
|
private:
|
|
VehicleConfigPresenter();
|
|
|
|
VehicleConfigView& view;
|
|
};
|
|
|
|
#endif // VEHICLECONFIGPRESENTER_HPP
|