Files
MuditaOS/module-apps/notifications
Michał Kamoń 8078dd240b [EGD-6855] Add no modem notification on tethering
This commit provides the implementation of functionality that blocks
sms/calls notifications on home screen when tethering is active.
Previously, the notifications could be visible if the notifications
were visible prior to tethering activation.

By the design, the functionality should not clear the notifications,
just temporary hide them. That is achieved by implementation ot the
functionality in NotificationModel which is an UI presenter.
2021-06-01 14:25:32 +02:00
..

Home Screen Notifications

General structure

The general structure is based on the Model-View pattern on the front-end, supplied with a Provider's back-end notifications as follows:

Provider structure

On the provider's end, Notifications are managed by NotificationProvider and sent as an NotificationsChanged action with NotificationsChangedParams via ApplicationManger's Controller.

The NotificationProvider is responsible for creating and managing Notifications. Each Notification represents a unique event and thus at most single object (of a respective type) can be stored in the provider. The provider's structure is shown on following diagram:

Model-View structure

NotificationsModel is responsible for creating and decorating NotificationListItems based on NotificationsChangedParams received. The model serves also as a local provider for gui::ListView.