1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef TELEPHONY_CALL_IMPL_H
16 #define TELEPHONY_CALL_IMPL_H
17 
18 #include "telephony_call_utils.h"
19 
20 namespace OHOS {
21 namespace Telephony {
22 
23 class TelephonyCallImpl {
24 public:
25     static bool IsRinging(int32_t *errCode);
26 
27     static char* FormatPhoneNumberToE164(char *cPhoneNumber, char *cCountryCode, int32_t *errCode);
28 
29     static void Init();
30 
31     static int32_t DialCall(char *phoneNumber, DialCallOptions options);
32 
33     static bool HasVoiceCapability();
34 
35     static char* FormatPhoneNumber(char *cPhoneNumber, char *cCountryCode, int32_t *errCode);
36 
37     static int32_t GetCallState();
38 
39     static bool HasCall();
40 
41     static bool IsEmergencyPhoneNumber(char *cPhoneNumber, int32_t slotId, int32_t* errCode);
42 
43     static int32_t MakeCall(char* phoneNumber);
44 };
45 }
46 }
47 
48 #endif // TELEPHONY_CALL_IMPL_H