~aleteoryx/muditaos

ref: 9a17c5fc3c0cc1be99a90f36b24b363f5ac22c1d muditaos/module-services/service-appmgr/data/SimActionsParams.cpp -rw-r--r-- 1.1 KiB
9a17c5fc — Przemyslaw Brudny [EGD-6676] PhoneLock handling with ServiceDesktop 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <service-appmgr/data/SimActionsParams.hpp>

using namespace app::manager::actions;

PasscodeParams::PasscodeParams(Store::GSM::SIM _sim, unsigned int _attempts, std::string _passcodeName)
    : sim{_sim}, attempts{_attempts}, passcodeName{std::move(_passcodeName)}
{}

Store::GSM::SIM PasscodeParams::getSim() const noexcept
{
    return sim;
}
unsigned int PasscodeParams::getAttempts() const noexcept
{
    return attempts;
}
const std::string &PasscodeParams::getPasscodeName() const noexcept
{
    return passcodeName;
}

SimStateParams::SimStateParams(Store::GSM::SIM _sim) : sim{_sim}
{}

Store::GSM::SIM SimStateParams::getSim() const noexcept
{
    return sim;
}

UnhandledCMEParams::UnhandledCMEParams(Store::GSM::SIM _sim, unsigned int _cmeCode) : sim{_sim}, cmeCode{_cmeCode}
{}

Store::GSM::SIM UnhandledCMEParams::getSim() const noexcept
{
    return sim;
}
unsigned int UnhandledCMEParams::getCMECode() const noexcept
{
    return cmeCode;
}