mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-24 16:47:00 -04:00
Refactored PhoneLock to be independent of system time. Refactored refresh options for notification receive on Windows.
31 lines
1.1 KiB
C++
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;
|
|
}
|