summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Modal.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-02-14 14:42:42 +0100
committerJean-François Milants <jf@codingfield.com>2021-02-14 14:42:42 +0100
commitf81ff98c308e437139468301ed5198b322c2f4ec (patch)
tree4e2334bc3a8f7f434890a4cb439703b569572c10 /src/displayapp/screens/Modal.h
parent01e194426d51ffb1a6e9e3162567f29c2a84154d (diff)
parente62f8734befca5e40496f354aa05ea20602a8bbe (diff)
Merge branch 'develop' of github.com:JF002/Pinetime into develop
Diffstat (limited to 'src/displayapp/screens/Modal.h')
-rw-r--r--src/displayapp/screens/Modal.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/displayapp/screens/Modal.h b/src/displayapp/screens/Modal.h
index 9cc177f0..de7575a8 100644
--- a/src/displayapp/screens/Modal.h
+++ b/src/displayapp/screens/Modal.h
@@ -3,6 +3,8 @@
#include "Screen.h"
#include <lvgl/src/lv_core/lv_style.h>
#include <lvgl/src/lv_core/lv_obj.h>
+#include <components/ble/NotificationManager.h>
+#include <components/ble/AlertNotificationService.h>
namespace Pinetime {
namespace Applications {
@@ -13,7 +15,9 @@ namespace Pinetime {
Modal(DisplayApp* app);
~Modal() override;
- void Show(const char* msg);
+
+ void NewNotification(Pinetime::Controllers::NotificationManager &notificationManager, Pinetime::Controllers::AlertNotificationService* alertService);
+ void Show(const char* msg, const char *btns[]);
void Hide();
bool Refresh() override;
@@ -23,6 +27,11 @@ namespace Pinetime {
private:
void OnEvent(lv_obj_t *event_obj, lv_event_t evt);
+ Pinetime::Controllers::AlertNotificationService* alertNotificationService = nullptr;
+
+ std::string positiveButton;
+ std::string negativeButton;
+
lv_style_t modal_style;
lv_obj_t *obj;
lv_obj_t *mbox;