Files
MuditaOS/module-apps/application-settings/data/PINSettingsLockStateData.hpp
Mateusz Grzegorzek 8e6490863a [BH-395] Librarize application-settings
Librarize application-settings
2021-08-09 08:03:20 +02:00

24 lines
533 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 <gui/SwitchData.hpp>
namespace gui
{
class PINSettingsLockStateData : public SwitchData
{
public:
explicit PINSettingsLockStateData(bool state) : state(state)
{}
[[nodiscard]] bool getSimCardPinLockState() const noexcept
{
return state;
}
private:
const bool state;
};
} // namespace gui