mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-24 16:47:00 -04:00
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "Result.hpp"
|
|
#include <at/Cmd.hpp>
|
|
#include <functional>
|
|
#include <SimInsertedState.hpp>
|
|
|
|
namespace at
|
|
{
|
|
namespace result
|
|
{
|
|
struct QSIMSTAT : public Result
|
|
{
|
|
at::SimInsertedStatusEnable enabled;
|
|
at::SimInsertedStatus status;
|
|
explicit QSIMSTAT(const Result &that);
|
|
};
|
|
} // namespace result
|
|
|
|
namespace cmd
|
|
{
|
|
class QSIMSTAT : public Cmd
|
|
{
|
|
public:
|
|
QSIMSTAT() noexcept;
|
|
explicit QSIMSTAT(at::cmd::Modifier mod) noexcept;
|
|
|
|
[[nodiscard]] auto parseQSIMSTAT(const Result &base_result) -> result::QSIMSTAT;
|
|
|
|
private:
|
|
enum class responseTokens
|
|
{
|
|
Enabled,
|
|
SimInserted
|
|
};
|
|
void parseTokens(const std::vector<std::string> &tokens, result::QSIMSTAT &parsed);
|
|
};
|
|
} // namespace cmd
|
|
|
|
} // namespace at
|