• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 CS_CALL_H
17 #define CS_CALL_H
18 
19 #include "cs_conference.h"
20 #include "carrier_call.h"
21 
22 namespace OHOS {
23 namespace Telephony {
24 class CSCall : public CarrierCall {
25 public:
26     CSCall(DialParaInfo &info);
27     CSCall(DialParaInfo &info, AppExecFwk::PacMap &extras);
28     ~CSCall();
29     int32_t DialingProcess() override;
30     int32_t AnswerCall(int32_t videoState) override;
31     int32_t RejectCall() override;
32     int32_t HangUpCall() override;
33     int32_t HoldCall() override;
34     int32_t UnHoldCall() override;
35     int32_t SwitchCall() override;
36     void GetCallAttributeInfo(CallAttributeInfo &info) override;
37     int32_t CombineConference() override; // merge calls
38     int32_t SeparateConference() override;
39     int32_t CanCombineConference() override;
40     int32_t CanSeparateConference() override;
41     int32_t LaunchConference() override;
42     int32_t ExitConference() override;
43     int32_t HoldConference() override;
44     int32_t GetMainCallId() override;
45     std::vector<std::u16string> GetSubCallIdList() override;
46     std::vector<std::u16string> GetCallIdListForConference() override;
47     int32_t IsSupportConferenceable() override;
48 };
49 } // namespace Telephony
50 } // namespace OHOS
51 
52 #endif // CS_CALL_H
53