mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 23:17:35 -04:00
This window displays switch button for disabling/enabling pin code for sim card. Its also starting point for changing pin code. Added actions for enabling and disabling pin code for sim card. Added method for checking if pin code is set for sim card.
25 lines
547 B
C++
25 lines
547 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 <string>
|
|
#include <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
|