~aleteoryx/muditaos

ref: 2a11e4d6e37c28199a4425c07c08278df8f98b1c muditaos/module-services/service-cellular/call/CallRingGuard.hpp -rw-r--r-- 732 bytes
2a11e4d6 — Maciej Gibowicz [MOS-135] Proper system shutdown during restore 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
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#pragma once

namespace CellularCall
{
    class Call;
}

/// Guard to check if we should ring on cellular RING URC
/// This flow is when:
/// - We are in normal mode
/// - somebody calls
/// Without this check we could never ring on private numbers
bool callRingGuard(CellularCall::Call &call);

/// Guard to check if we should ring on cellular CLIP URC
/// This flow is when:
/// - We are in do not disturb mode
/// - somebody calls
/// - we have this somebody phone number via CLIP URC
/// It wont be ever called for private numbers
bool callClipGuard(CellularCall::Call &call);