M harmony_changelog.md => harmony_changelog.md +1 -0
@@ 26,6 26,7 @@
* Fixed the buttons sometimes don't respond on press or release
* Fixed no clock update
* Fixed problem with displaying some filenames in Relaxation
+* Fixed disabling the alarm on the system shutdown screen
### Added
M module-sys/common/include/system/Common.hpp => module-sys/common/include/system/Common.hpp +4 -1
@@ 26,7 26,8 @@ namespace sys
PhoneModeChanges,
PhoneLockChanges,
BluetoothModeChanges,
- BluetoothNotifications
+ BluetoothNotifications,
+ AlarmNotifications
};
enum class ServicePriority
@@ 135,6 136,8 @@ inline const char *c_str(sys::BusChannel channel)
return "BluetoothNotifications";
case sys::BusChannel::PhoneLockChanges:
return "PhoneLockChanges";
+ case sys::BusChannel::AlarmNotifications:
+ return "AlarmNotifications";
}
return "";
}
M products/BellHybrid/apps/application-bell-main/ApplicationBellMain.cpp => products/BellHybrid/apps/application-bell-main/ApplicationBellMain.cpp +6 -0
@@ 26,6 26,7 @@
#include <WindowsStack.hpp>
#include <popups/Popups.hpp>
#include <service-desktop/DesktopMessages.hpp>
+#include <appmgr/messages/AlarmMessage.hpp>
namespace app
{
@@ 48,6 49,7 @@ namespace app
bus.channels.push_back(sys::BusChannel::ServiceDBNotifications);
bus.channels.push_back(sys::BusChannel::USBNotifications);
+ bus.channels.push_back(sys::BusChannel::AlarmNotifications);
addActionReceiver(manager::actions::ShowAlarm, [this](auto &&data) {
switchWindow(gui::name::window::main_window, std::move(data));
@@ 79,6 81,10 @@ namespace app
homeScreenPresenter->setUSBStatusConnected();
return sys::msgHandled();
});
+ connect(typeid(AlarmDeactivated), [this](sys::Message *request) -> sys::MessagePointer {
+ alarmModel->turnOff();
+ return sys::msgHandled();
+ });
}
sys::ReturnCodes ApplicationBellMain::InitHandler()
M products/BellHybrid/sys/SystemManager.cpp => products/BellHybrid/sys/SystemManager.cpp +2 -2
@@ 1,4 1,4 @@
-// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
+// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <sys/SystemManager.hpp>
@@ 35,7 35,7 @@ namespace sys
bus.sendUnicast(std::make_shared<AlarmActivated>(), service::name::appmgr);
break;
case AlarmActivationStatus::DEACTIVATED:
- bus.sendUnicast(std::make_shared<AlarmDeactivated>(), service::name::appmgr);
+ bus.sendMulticast(std::make_shared<AlarmDeactivated>(), sys::BusChannel::AlarmNotifications);
break;
}
return MessageNone{};