Files
Upsilon/apps/home/app.cpp
2020-05-05 16:17:03 +02:00

43 lines
775 B
C++

#include "app.h"
#include <apps/i18n.h>
extern "C" {
#include <assert.h>
}
namespace Home {
I18n::Message App::Descriptor::name() {
return I18n::Message::Apps;
}
I18n::Message App::Descriptor::upperName() {
return I18n::Message::AppsCapital;
}
App * App::Snapshot::unpack(Container * container) {
return new (container->currentAppBuffer()) App(this);
}
App::Descriptor * App::Snapshot::descriptor() {
static Descriptor descriptor;
return &descriptor;
}
void App::didBecomeActive(Window * window) {
::App::didBecomeActive(window);
m_window = window;
}
void App::redraw() {
m_window->redraw(true);
}
App::App(Snapshot * snapshot) :
::App(snapshot, &m_controller, I18n::Message::Warning),
m_controller(&m_modalViewController, snapshot, this)
{
}
}