Get started on driver view
This commit is contained in:
@ -0,0 +1,38 @@
|
||||
#ifndef DRIVERVIEWPRESENTER_HPP
|
||||
#define DRIVERVIEWPRESENTER_HPP
|
||||
|
||||
#include <gui/model/ModelListener.hpp>
|
||||
#include <mvp/Presenter.hpp>
|
||||
|
||||
using namespace touchgfx;
|
||||
|
||||
class DriverViewView;
|
||||
|
||||
class DriverViewPresenter : public touchgfx::Presenter, public ModelListener {
|
||||
public:
|
||||
DriverViewPresenter(DriverViewView &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 ~DriverViewPresenter(){};
|
||||
|
||||
void tireTempsUpdated() override;
|
||||
|
||||
private:
|
||||
DriverViewPresenter();
|
||||
|
||||
DriverViewView &view;
|
||||
};
|
||||
|
||||
#endif // DRIVERVIEWPRESENTER_HPP
|
||||
@ -0,0 +1,20 @@
|
||||
#ifndef DRIVERVIEWVIEW_HPP
|
||||
#define DRIVERVIEWVIEW_HPP
|
||||
|
||||
#include "vehicle.h"
|
||||
#include <gui/driverview_screen/DriverViewPresenter.hpp>
|
||||
#include <gui_generated/driverview_screen/DriverViewViewBase.hpp>
|
||||
|
||||
class DriverViewView : public DriverViewViewBase {
|
||||
public:
|
||||
DriverViewView();
|
||||
virtual ~DriverViewView() {}
|
||||
virtual void setupScreen();
|
||||
virtual void tearDownScreen();
|
||||
|
||||
void setTireTemps(const TireTemps &temps);
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
#endif // DRIVERVIEWVIEW_HPP
|
||||
Reference in New Issue
Block a user