summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Modal.h
diff options
context:
space:
mode:
authorRasmus Schenstrom <element_004@hotmail.com>2020-10-27 19:51:06 +0100
committerpetter <39340152+petterhs@users.noreply.github.com>2021-01-21 23:15:29 +0100
commit10ba20876f37c8e18307dfbc8d06d70bb94d5fae (patch)
tree18d4a9d143162420452be53ee27fa8370ce465cc /src/displayapp/screens/Modal.h
parent7e27bc873315589ae4076780607720aa5278c5a1 (diff)
Add incoming call functionality
Add categories to AlertNotification Add new alert notification screens bases Add Incoming Call Add Modal Add event to AlertNotification Co-authored-by: Robin Karlsson <robin.karlsson@protonmail.com>
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;