summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Modal.h
diff options
context:
space:
mode:
authorJF002 <JF002@users.noreply.github.com>2021-02-14 12:03:49 +0100
committerGitHub <noreply@github.com>2021-02-14 12:03:49 +0100
commit4c3803450e33e321dd2f90bdf62b9abe99f1e491 (patch)
tree1b69be394c55dce4cbe64750dae6603bfd33b09c /src/displayapp/screens/Modal.h
parent6420885abb96735e085f3c60b123b0c671a7afb8 (diff)
parentd4c31bcbbe2f8b6d2e6c45203193745f9cb2a41b (diff)
Merge pull request #161 from petterhs/calls
Call functionality with changed UUID for notification event characteristic
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;