1 /* 2 * Copyright (C) 2021 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 #ifndef CALL_REQUEST_PROCESS_H 17 #define CALL_REQUEST_PROCESS_H 18 19 #include "call_object_manager.h" 20 21 namespace OHOS { 22 namespace Telephony { 23 class CallRequestProcess : public CallObjectManager { 24 public: 25 CallRequestProcess(); 26 ~CallRequestProcess(); 27 28 void DialRequest(); 29 void AnswerRequest(int32_t callId, int32_t videoState); 30 void RejectRequest(int32_t callId, bool isSendSms, std::string &content); 31 void HangUpRequest(int32_t callId); 32 void HoldRequest(int32_t callId); 33 void UnHoldRequest(int32_t callId); 34 void SwitchRequest(int32_t callId); 35 void CombineConferenceRequest(int32_t mainCallId); 36 void SeparateConferenceRequest(int32_t callId); 37 void UpdateCallMediaModeRequest(int32_t callId, ImsCallMode mode); 38 void StartRttRequest(int32_t callId, std::u16string &msg); 39 void StopRttRequest(int32_t callId); 40 void JoinConference(int32_t callId, std::vector<std::string> &numberList); 41 42 private: 43 void CarrierDialProcess(DialParaInfo &info); 44 void VoiceMailDialProcess(DialParaInfo &info); 45 void OttDialProcess(DialParaInfo &info); 46 int32_t UpdateImsCallMode(int32_t callId, ImsCallMode mode); 47 int32_t PackCellularCallInfo(DialParaInfo &info, CellularCallInfo &callInfo); 48 bool IsFdnNumber(std::vector<std::u16string> fdnNumberList, std::string phoneNumber); 49 }; 50 } // namespace Telephony 51 } // namespace OHOS 52 53 #endif // CALL_REQUEST_PROCESS_H 54