mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-03 03:18:46 -05:00
* Added notification showing on the main screen if the battery has reached too high temperature to continue charging. * Code cleanups.
30 lines
881 B
C++
30 lines
881 B
C++
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "NotificationsConfiguration.hpp"
|
|
#include "policies/CallNotificationPolicy.hpp"
|
|
#include "policies/SMSNotificationPolicy.hpp"
|
|
#include <PhoneModes/Observer.hpp>
|
|
#include <Service/Service.hpp>
|
|
#include <PhoneNumber.hpp>
|
|
|
|
namespace notifications
|
|
{
|
|
class NotificationsHandler
|
|
{
|
|
public:
|
|
NotificationsHandler(sys::Service *parentService, NotificationsConfiguration ¬ificationConfig);
|
|
void registerMessageHandlers();
|
|
|
|
private:
|
|
void incomingSMSHandler();
|
|
void playbackSMSRingtone();
|
|
|
|
sys::Service *parentService = nullptr;
|
|
NotificationsConfiguration ¬ificationConfig;
|
|
SMSNotificationPolicy currentSMSPolicy;
|
|
};
|
|
} // namespace notifications
|