mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 17:50:04 +01:00
Squelette
This commit is contained in:
37
apps/reader/app.cpp
Normal file
37
apps/reader/app.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#include "app.h"
|
||||
#include "reader_icon.h"
|
||||
#include "apps/apps_container.h"
|
||||
#include "apps/i18n.h"
|
||||
|
||||
|
||||
namespace reader {
|
||||
|
||||
I18n::Message App::Descriptor::name() {
|
||||
return I18n::Message::ReaderApp;
|
||||
}
|
||||
|
||||
I18n::Message App::Descriptor::upperName() {
|
||||
return I18n::Message::ReaderAppCapital;
|
||||
}
|
||||
|
||||
const Image * App::Descriptor::icon() {
|
||||
return ImageStore::ReaderIcon;
|
||||
}
|
||||
|
||||
|
||||
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, nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user