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
548 B
C++
25 lines
548 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 PINSettingsSimData : public SwitchData
|
|
{
|
|
public:
|
|
explicit PINSettingsSimData(std::string sim) : sim(std::move(sim))
|
|
{}
|
|
[[nodiscard]] auto getSim() const -> const std::string &
|
|
{
|
|
return sim;
|
|
}
|
|
|
|
private:
|
|
const std::string sim;
|
|
};
|
|
} // namespace gui
|