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 
24 namespace OHOS {
25 namespace Telephony {
26 class CallDialog {
27 public:
28     bool DialogConnectExtension(const std::string &dialogReason);
29     bool DialogConnectExtension(const std::string &dialogReason, int32_t slotId);
30     bool DialogConnectPrivpacyModeExtension(const std::string &dialogReason, std::u16string &number, int32_t &accountId,
31     int32_t &videoState, int32_t &dialType, int32_t &dialScene, int32_t &callType, bool isVideo);
32     bool DialogConnectAnswerPrivpacyModeExtension(const std::string &dialogReason,
33         int32_t &callId, int32_t &videoState, bool isVideo);
34 private:
35     bool DialogConnectExtensionAbility(const AAFwk::Want &want, const std::string commandStr);
36     bool CallSettingDialogConnectExtensionAbility(const AAFwk::Want &want, const std::string commandStr);
37     std::string BuildStartPrivpacyModeCommand(const std::string &dialogReason, std::u16string &number,
38 	int32_t &accountId, int32_t &videoState, int32_t &dialType, int32_t &dialScene, int32_t &callType, bool isVideo);
39     std::string BuildStartAnswerPrivpacyModeCommand(const std::string &dialogReason,
40         int32_t &callId, int32_t &videoState, bool isVideo);
41     std::string BuildStartCommand(const std::string &dialogReason, int32_t slotId);
42 };
43 } // namespace Telephony
44 } // namespace OHOS
45 #endif // CALL_DIALOG_H