~aleteoryx/muditaos

ref: 390a22363720b53e7182c05cd4109b1f4cc1ab3c muditaos/module-services/service-cellular/src/CallManager.hpp -rw-r--r-- 629 bytes
390a2236 — Alek Rudnik [EGD-8154] Added watchdog thread closure on system exit 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
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

namespace cellular::internal
{
    class SimpleCallManager
    {
      public:
        void hangUp() noexcept;
        void ring() noexcept;
        void completeCallerInfo() noexcept;

        [[nodiscard]] auto isIncomingCallPropagated() const noexcept -> bool;
        [[nodiscard]] auto isCallerInfoComplete() const noexcept -> bool;

      private:
        bool incomingCallPropagated{false};
        bool callerInfoComplete{false};
    };
} // namespace cellular::internal