mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
35 lines
662 B
C++
35 lines
662 B
C++
#include "app.h"
|
|
#include <apps/i18n.h>
|
|
#include <assert.h>
|
|
|
|
namespace USB {
|
|
|
|
I18n::Message App::Descriptor::name() {
|
|
return upperName();
|
|
}
|
|
|
|
I18n::Message App::Descriptor::upperName() {
|
|
return I18n::Message::USBAppCapital;
|
|
}
|
|
|
|
App * App::Snapshot::unpack(Container * container) {
|
|
return new (container->currentAppBuffer()) App(this);
|
|
}
|
|
|
|
App::Descriptor * App::Snapshot::descriptor() {
|
|
static Descriptor descriptor;
|
|
return &descriptor;
|
|
}
|
|
|
|
App::App(Snapshot * snapshot) :
|
|
::App(snapshot, &m_usbConnectedController)
|
|
{
|
|
}
|
|
|
|
bool App::processEvent(Ion::Events::Event e) {
|
|
// Impossible de gérer mes events ici lorsqu'on active le DFU
|
|
return false;
|
|
}
|
|
|
|
}
|