~aleteoryx/muditaos

ref: 4ad0f29ab49cde21debe3f98a8b0ba99e3aa585c muditaos/module-cellular/at/cmd/QCFGUsbnet.hpp -rw-r--r-- 1.1 KiB
4ad0f29a — Lefucjusz [BH-1898] Fix of GUI freeze after intensive volume change 2 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
44
45
46
47
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "Result.hpp"
#include <at/Cmd.hpp>
#include <functional>
#include <SimInsertedState.hpp>

namespace at
{
    namespace qcfg::usbnet
    {
        constexpr auto tokensCount = 1;
        enum class Net
        {
            RMNET = 0,
            ECM,
            MBIM,
            RNDIS
        };
    } // namespace qcfg::usbnet

    namespace result
    {
        struct QCFGUsbnet : public Result
        {
            qcfg::usbnet::Net net;
            explicit QCFGUsbnet(const Result &that);
        };
    } // namespace result

    namespace cmd
    {
        class QCFGUsbnet : public Cmd
        {
          public:
            QCFGUsbnet() noexcept;
            explicit QCFGUsbnet(at::cmd::Modifier mod) noexcept;

            [[nodiscard]] auto parseQCFGUsbnet(const Result &base_result) -> result::QCFGUsbnet;
            void set(qcfg::usbnet::Net net);
        };
    } // namespace cmd

} // namespace at