Files
MuditaOS/module-services/service-appmgr/data/NotificationsChangedActionsParams.cpp
Przemyslaw Brudny 3b84af2746 [EGD-7631] PhoneLock timer system time independence refactor
Refactored PhoneLock to be independent of system time.
Refactored refresh options for notification receive on
Windows.
2021-09-30 17:01:53 +03:00

31 lines
1.1 KiB
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "NotificationsChangedActionsParams.hpp"
#include <apps-common/notifications/NotificationData.hpp>
using namespace app::manager::actions;
NotificationsChangedParams::NotificationsChangedParams(Notifications notifications,
bool showNotificationsWhenLocked,
bool fastRefreshOnUpdate)
: notifications{std::move(notifications)}, showWhenLocked{showNotificationsWhenLocked}, fastRefreshOnUpdate{
fastRefreshOnUpdate}
{}
auto NotificationsChangedParams::getNotifications() const noexcept -> const Notifications &
{
return notifications;
}
auto NotificationsChangedParams::showNotificationsWhenLocked() const noexcept -> bool
{
return showWhenLocked;
}
auto NotificationsChangedParams::fastRefreshOnNotificationUpdate() const noexcept -> bool
{
return fastRefreshOnUpdate;
}