mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-18 20:14:12 -04:00
Sometimes the process of changing the SIM card takes a few seconds and the user needs to be informed that something is going on in the background.
32 lines
719 B
C++
32 lines
719 B
C++
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <locks/data/LockData.hpp>
|
|
|
|
#include <Service/Service.hpp>
|
|
#include <service-cellular-api>
|
|
|
|
namespace locks
|
|
{
|
|
class SimLockSubject
|
|
{
|
|
private:
|
|
sys::Service *owner;
|
|
|
|
public:
|
|
explicit SimLockSubject(sys::Service *owner);
|
|
|
|
void setSim(cellular::api::SimSlot simSlot);
|
|
void resetSimLockState();
|
|
void changeSimPin();
|
|
void enableSimPin();
|
|
void disableSimPin();
|
|
void verifyInput(LockInput inputData);
|
|
void unblockSim();
|
|
void simSwitched();
|
|
};
|
|
|
|
} // namespace locks
|