~aleteoryx/muditaos

ref: de5b923e81ed56bc845b75b2833cb040fafc3409 muditaos/module-cellular/at/cmd/CSCA.hpp -rw-r--r-- 1.1 KiB
de5b923e — DariuszSabala [BH-369] Turned UTF8 into separate library 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
// 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 <PhoneNumber.hpp>

namespace at
{
    namespace result
    {
        /// please see documentation:
        /// QuectelEC2526EC21ATCommandsManualV13.1100970659
        /// page: 118 for more information
        struct CSCA : public Result
        {
            std::string smsCenterAddress;
            std::string smsTypeOfAddress;
            explicit CSCA(const Result &);
            operator bool() const override;
        };
    } // namespace result

    namespace cmd
    {

        class PhoneView;

        class CSCA : public Cmd
        {
          public:
            CSCA() noexcept;
            explicit CSCA(at::cmd::Modifier mod) noexcept;
            [[nodiscard]] auto parse(Result &base_result) -> result::CSCA & final;
            void set(const utils::PhoneNumber::View &smsCenterAddress, int smsTypeOfAddress);
        };
    } // namespace cmd
} // namespace at