mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-03 19:38:44 -05: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.
59 lines
1.3 KiB
C++
59 lines
1.3 KiB
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 <Service/Message.hpp>
|
|
#include <service-cellular-api>
|
|
|
|
namespace locks
|
|
{
|
|
class UnLockSimInput : public sys::DataMessage
|
|
{
|
|
private:
|
|
std::vector<unsigned int> inputData;
|
|
|
|
public:
|
|
explicit UnLockSimInput(std::vector<unsigned int> inputData) : DataMessage{}, inputData(std::move(inputData))
|
|
{}
|
|
|
|
[[nodiscard]] auto getInputData() const noexcept
|
|
{
|
|
return inputData;
|
|
}
|
|
};
|
|
|
|
class SetSim : public sys::DataMessage
|
|
{
|
|
private:
|
|
cellular::api::SimSlot simSlot;
|
|
|
|
public:
|
|
explicit SetSim(cellular::api::SimSlot simSlot) : DataMessage{}, simSlot(simSlot)
|
|
{}
|
|
|
|
[[nodiscard]] auto getSimSlot() const noexcept
|
|
{
|
|
return simSlot;
|
|
}
|
|
};
|
|
|
|
class ChangeSimPin : public sys::DataMessage
|
|
{};
|
|
|
|
class EnableSimPin : public sys::DataMessage
|
|
{};
|
|
|
|
class DisableSimPin : public sys::DataMessage
|
|
{};
|
|
|
|
class ResetSimLockState : public sys::DataMessage
|
|
{};
|
|
|
|
class UnblockSim : public sys::DataMessage
|
|
{};
|
|
|
|
class SimSwitched : public sys::DataMessage
|
|
{};
|
|
} // namespace locks
|