// Copyright (c) 2017-2022, 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 #include #include namespace notifications { class NotificationsHandler { public: NotificationsHandler(sys::Service *parentService, NotificationsConfiguration ¬ifcationConfig); void registerMessageHandlers(); private: void incomingSMSHandler(); void policyNumberCheck(const utils::PhoneNumber::View &number); void playbackCallRingtone(); void playbackSMSRingtone(); sys::Service *parentService = nullptr; NotificationsConfiguration ¬ifcationConfig; CallNotificationPolicy currentCallPolicy; SMSNotificationPolicy currentSMSPolicy; }; } // namespace notifications