Files
MuditaOS/module-apps/apps-common/locks/handlers/SimLockSubject.hpp
Maciej-Mudita bc6eda4083 [MOS-800] Add a popup for changing the SIM card
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.
2022-11-27 16:53:42 +01:00

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