forked from RedGl0w/atomic
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathapp.h
38 lines (33 loc) · 865 Bytes
/
app.h
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
#ifndef ATOMIC_APP_H
#define ATOMIC_APP_H
#include "../shared/shared_app.h"
#include "table_controller.h"
#include <escher.h>
namespace Atomic {
class App : public ::App {
public:
class Descriptor : public ::App::Descriptor {
public:
I18n::Message name() override;
I18n::Message upperName() override;
const Image * icon() override;
};
class Snapshot : public ::SharedApp::Snapshot, public SelectableTableViewDataSource {
public:
Snapshot();
App * unpack(Container * container) override;
Descriptor * descriptor() override;
};
static App * app() {
return static_cast<App *>(Container::activeApp());
}
Snapshot * snapshot() const {
return static_cast<Snapshot *>(::App::snapshot());
}
private:
App(Snapshot * snapshot);
TableController m_controller;
StackViewController m_stackViewController;
};
}
#endif