// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/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