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 16#ifndef CALL_DIALOG_H 17#define CALL_DIALOG_H 18 19#include <string> 20 21#include "call_ability_connection.h" 22#include "call_setting_ability_connection.h" 23#include "display_info.h" 24 25namespace OHOS { 26namespace Telephony { 27class CallDialog { 28public: 29 bool DialogConnectExtension(const std::string &dialogReason); 30 bool DialogConnectExtension(const std::string &dialogReason, int32_t slotId); 31 bool DialogConnectPrivpacyModeExtension(const std::string &dialogReason, std::u16string &number, int32_t &accountId, 32 int32_t &videoState, int32_t &dialType, int32_t &dialScene, int32_t &callType, bool isVideo); 33 bool DialogConnectAnswerPrivpacyModeExtension(const std::string &dialogReason, 34 int32_t &callId, int32_t &videoState, bool isVideo); 35 void DialogCallingPrivacyModeExtension(Rosen::FoldStatus foldStatus); 36private: 37 bool DialogConnectExtensionAbility(const AAFwk::Want &want, const std::string commandStr); 38 bool CallSettingDialogConnectExtensionAbility(const AAFwk::Want &want, const std::string commandStr); 39 std::string BuildStartCommand(const std::string &dialogReason, int32_t slotId); 40 std::string BuildStartPrivpacyModeCommand(const std::string &dialogReason, std::u16string &number, 41 int32_t &accountId, int32_t &videoState, int32_t &dialType, int32_t &dialScene, int32_t &callType, bool isVideo); 42 std::string BuildStartAnswerPrivpacyModeCommand(const std::string &dialogReason, 43 int32_t &callId, int32_t &videoState, bool isVideo); 44 std::string BuildCallingPrivacyModeCommand(int32_t &videoState); 45}; 46} // namespace Telephony 47} // namespace OHOS 48#endif // CALL_DIALOG_H