summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/home_menu/main.hpp7
-rw-r--r--apps/main_clock/main.hpp17
2 files changed, 10 insertions, 14 deletions
diff --git a/apps/home_menu/main.hpp b/apps/home_menu/main.hpp
index 421789b..155009b 100644
--- a/apps/home_menu/main.hpp
+++ b/apps/home_menu/main.hpp
@@ -16,9 +16,12 @@ class app_home_menu : public BaseApp {
void title_str(char *buf, uint buf_size, const datetime_t *t);
void show_title(Api *app_api);
+
+ AppAttributes app_attributes = {0, false};
public:
- uint app_id = 0;
- bool app_destroy_on_exit = false;
+ const AppAttributes& app_get_attributes() {
+ return app_attributes;
+ }
app_home_menu(Api *app_api);
int render(Api *app_api);
diff --git a/apps/main_clock/main.hpp b/apps/main_clock/main.hpp
index 37c9075..f00958e 100644
--- a/apps/main_clock/main.hpp
+++ b/apps/main_clock/main.hpp
@@ -14,10 +14,12 @@ class app_main_clock : public BaseApp {
void time_as_str(char *buf, uint buf_size, const datetime_t *t);
void date_as_str(char *buf, uint buf_size, const datetime_t *t);
void show_datetime(Api *app_api);
-
+
+ AppAttributes app_attributes = {1, true};
public:
- uint app_id = 1;
- bool app_destroy_on_exit = true;
+ const AppAttributes& app_get_attributes() {
+ return app_attributes;
+ }
app_main_clock(Api *app_api);
int render(Api *app_api);
@@ -25,12 +27,3 @@ class app_main_clock : public BaseApp {
int bgrefresh(Api *app_api, bool in_foreground);
~app_main_clock();
};
-
-
-/* namespace app_main_clock {
- int init(Api *app_api);
- int render(Api *app_api);
- int btnpressed(Api *app_api, uint gpio, unsigned long delta);
- int bgrefresh(Api *app_api, bool in_foreground);
- int destroy(Api *app_api);
-} */