1 /*
2  * Copyright (C) 2023 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 
16 #include "satellite_call.h"
17 
18 #include "call_manager_errors.h"
19 #include "telephony_log_wrapper.h"
20 
21 namespace OHOS {
22 namespace Telephony {
SatelliteCall(DialParaInfo & info)23 SatelliteCall::SatelliteCall(DialParaInfo &info) : CarrierCall(info) {}
24 
SatelliteCall(DialParaInfo & info,AppExecFwk::PacMap & extras)25 SatelliteCall::SatelliteCall(DialParaInfo &info, AppExecFwk::PacMap &extras) : CarrierCall(info, extras) {}
26 
~SatelliteCall()27 SatelliteCall::~SatelliteCall() {}
28 
DialingProcess()29 int32_t SatelliteCall::DialingProcess()
30 {
31     return CarrierDialingProcess();
32 }
33 
AnswerCall(int32_t videoState)34 int32_t SatelliteCall::AnswerCall(int32_t videoState)
35 {
36     return CarrierAnswerCall(videoState);
37 }
38 
RejectCall()39 int32_t SatelliteCall::RejectCall()
40 {
41     return CarrierRejectCall();
42 }
43 
HangUpCall()44 int32_t SatelliteCall::HangUpCall()
45 {
46     return CarrierHangUpCall();
47 }
48 
HoldCall()49 int32_t SatelliteCall::HoldCall()
50 {
51     return TELEPHONY_ERROR;
52 }
53 
UnHoldCall()54 int32_t SatelliteCall::UnHoldCall()
55 {
56     return TELEPHONY_ERROR;
57 }
58 
SwitchCall()59 int32_t SatelliteCall::SwitchCall()
60 {
61     return TELEPHONY_ERROR;
62 }
63 
GetCallAttributeInfo(CallAttributeInfo & info)64 void SatelliteCall::GetCallAttributeInfo(CallAttributeInfo &info)
65 {
66     GetCallAttributeCarrierInfo(info);
67 }
68 
SetMute(int32_t mute,int32_t slotId)69 int32_t SatelliteCall::SetMute(int32_t mute, int32_t slotId)
70 {
71     return TELEPHONY_ERROR;
72 }
73 
CombineConference()74 int32_t SatelliteCall::CombineConference()
75 {
76     return TELEPHONY_ERROR;
77 }
78 
HandleCombineConferenceFailEvent()79 void SatelliteCall::HandleCombineConferenceFailEvent() {}
80 
SeparateConference()81 int32_t SatelliteCall::SeparateConference()
82 {
83     return TELEPHONY_ERROR;
84 }
85 
KickOutFromConference()86 int32_t SatelliteCall::KickOutFromConference()
87 {
88     return TELEPHONY_ERROR;
89 }
90 
CanCombineConference()91 int32_t SatelliteCall::CanCombineConference()
92 {
93     return TELEPHONY_ERROR;
94 }
95 
CanSeparateConference()96 int32_t SatelliteCall::CanSeparateConference()
97 {
98     return TELEPHONY_ERROR;
99 }
100 
CanKickOutFromConference()101 int32_t SatelliteCall::CanKickOutFromConference()
102 {
103     return TELEPHONY_ERROR;
104 }
105 
LaunchConference()106 int32_t SatelliteCall::LaunchConference()
107 {
108     return TELEPHONY_ERROR;
109 }
110 
ExitConference()111 int32_t SatelliteCall::ExitConference()
112 {
113     return TELEPHONY_ERROR;
114 }
115 
HoldConference()116 int32_t SatelliteCall::HoldConference()
117 {
118     return TELEPHONY_ERROR;
119 }
120 
GetMainCallId(int32_t & mainCallId)121 int32_t SatelliteCall::GetMainCallId(int32_t &mainCallId)
122 {
123     return TELEPHONY_ERROR;
124 }
125 
GetSubCallIdList(std::vector<std::u16string> & callIdList)126 int32_t SatelliteCall::GetSubCallIdList(std::vector<std::u16string> &callIdList)
127 {
128     return TELEPHONY_ERROR;
129 }
130 
GetCallIdListForConference(std::vector<std::u16string> & callIdList)131 int32_t SatelliteCall::GetCallIdListForConference(std::vector<std::u16string> &callIdList)
132 {
133     return TELEPHONY_ERROR;
134 }
135 
IsSupportConferenceable()136 int32_t SatelliteCall::IsSupportConferenceable()
137 {
138     return TELEPHONY_ERROR;
139 }
140 } // namespace Telephony
141 } // namespace OHOS