mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-04 21:29:36 -04:00
Rearrange TPMS app/UI code.
This commit is contained in:
parent
1a280149e2
commit
be328c5f38
2 changed files with 24 additions and 19 deletions
|
@ -30,8 +30,6 @@
|
|||
|
||||
class TPMSModel {
|
||||
public:
|
||||
TPMSModel();
|
||||
|
||||
ManchesterFormatted on_packet(const TPMSPacketMessage& message);
|
||||
|
||||
private:
|
||||
|
@ -40,14 +38,18 @@ private:
|
|||
|
||||
namespace ui {
|
||||
|
||||
class TPMSAppView : public Console {
|
||||
class TPMSAppView : public View {
|
||||
public:
|
||||
void on_show() override;
|
||||
void on_hide() override;
|
||||
TPMSAppView();
|
||||
~TPMSAppView();
|
||||
|
||||
void set_parent_rect(const Rect new_parent_rect) override;
|
||||
|
||||
private:
|
||||
TPMSModel model;
|
||||
|
||||
Console console;
|
||||
|
||||
void log(const ManchesterFormatted& formatted);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue