Files
MuditaOS/module-apps/apps-common/notifications/NotificationsHandler.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

30 lines
893 B
C++

// 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 &notificationConfig);
void registerMessageHandlers();
private:
void incomingSMSHandler();
void playbackSMSRingtone();
sys::Service *parentService = nullptr;
NotificationsConfiguration &notificationConfig;
SMSNotificationPolicy currentSMSPolicy;
};
} // namespace notifications