mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-01 10:28:52 -05:00
25 lines
539 B
C++
25 lines
539 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/messages/AutoLockRequests.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class AutoLockData : public gui::SwitchData
|
|
{
|
|
std::chrono::seconds value;
|
|
|
|
public:
|
|
explicit AutoLockData(std::chrono::seconds value) : value{value}
|
|
{}
|
|
|
|
[[nodiscard]] auto getValue() const noexcept
|
|
{
|
|
return value;
|
|
}
|
|
};
|
|
|
|
} // namespace gui
|