Files
MuditaOS/module-apps/application-music-player/AudioNotificationsHandler.hpp
Lefucjusz 2e04d268c4 [MOS-1068] Fix A2DP stream not restarting after song changes
Workaround for the issue that A2DP stream
would sometimes not restart when music
player changes song to the next one.
2024-05-29 17:33:30 +02:00

28 lines
1.0 KiB
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <presenters/SongsPresenter.hpp>
class AudioStopNotification;
class AudioPausedNotification;
class AudioResumedNotification;
namespace app::music_player
{
class AudioNotificationsHandler
{
public:
explicit AudioNotificationsHandler(std::shared_ptr<app::music_player::SongsContract::Presenter> presenter);
sys::MessagePointer handleAudioStopNotification(const AudioStopNotification *notification);
sys::MessagePointer handleAudioEofNotification(const AudioStopNotification *notification);
sys::MessagePointer handleAudioPausedNotification(const AudioPausedNotification *notification);
sys::MessagePointer handleAudioResumedNotification(const AudioResumedNotification *notification);
private:
std::shared_ptr<app::music_player::SongsContract::Presenter> presenter;
};
} // namespace app::music_player