forked from RedGl0w/atomic
-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.cpp
42 lines (33 loc) · 873 Bytes
/
app.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "app.h"
#include "apps/apps_container.h"
#include "atomic_icon.h"
#include "apps/i18n.h"
#include <assert.h>
#include <escher/app.h>
namespace Atomic {
I18n::Message App::Descriptor::name() {
return I18n::Message::AtomicApp;
}
I18n::Message App::Descriptor::upperName() {
return I18n::Message::AtomicAppCapital;
}
const Image * App::Descriptor::icon() {
return ImageStore::AtomicIcon;
}
App::Snapshot::Snapshot()
{
}
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_stackViewController, I18n::Message::Warning),
m_controller(&m_stackViewController, snapshot),
m_stackViewController(&m_modalViewController, &m_controller)
{
}
}