Files
MuditaOS/module-sys/SystemManager/data/SystemManagerActionsParams.hpp
Wojtek Rzepecki b24f0bca20 [EGD-2501] Add gsm powerdown due to battery
Gsm model power state maintenance based on battery level.
2021-01-15 11:05:22 +01:00

25 lines
597 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <service-appmgr/service-appmgr/Actions.hpp>
namespace app::manager::actions
{
class LowBatteryNotificationParams : public ActionParams
{
public:
explicit LowBatteryNotificationParams(bool isActive) : isActive(isActive){};
[[nodiscard]] bool getActiveState() const noexcept
{
return isActive;
}
private:
bool isActive;
};
} // namespace app::manager::actions