mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-08 17:55:00 -04:00
Hide implementation of MessageHandlerMap.
This commit is contained in:
parent
2aa8ae0d1f
commit
a7226820d0
9 changed files with 95 additions and 78 deletions
|
@ -26,13 +26,15 @@
|
|||
namespace ui {
|
||||
|
||||
void RSSI::on_show() {
|
||||
context().message_map[Message::ID::RSSIStatistics] = [this](const Message* const p) {
|
||||
this->on_statistics_update(static_cast<const RSSIStatisticsMessage*>(p)->statistics);
|
||||
};
|
||||
context().message_map.register_handler(Message::ID::RSSIStatistics,
|
||||
[this](const Message* const p) {
|
||||
this->on_statistics_update(static_cast<const RSSIStatisticsMessage*>(p)->statistics);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
void RSSI::on_hide() {
|
||||
context().message_map[Message::ID::RSSIStatistics] = nullptr;
|
||||
context().message_map.unregister_handler(Message::ID::RSSIStatistics);
|
||||
}
|
||||
|
||||
void RSSI::paint(Painter& painter) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue