~aleteoryx/muditaos

ref: eab694c090848c77eb80b6178483132a4554f306 muditaos/module-services/service-cellular/call/CallRingGuard.hpp -rw-r--r-- 1.0 KiB
eab694c0 — Marek Niepieklo [MOS-221] DND - missing notifications 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
// 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);

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