• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021-2022 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_STATUS_CALLBACK_H
17 #define CALL_STATUS_CALLBACK_H
18 
19 #include "ipc_types.h"
20 
21 #include "call_status_manager.h"
22 #include "call_status_callback_stub.h"
23 
24 namespace OHOS {
25 namespace Telephony {
26 class CallStatusCallback : public CallStatusCallbackStub {
27 public:
28     CallStatusCallback();
29     ~CallStatusCallback();
30 
31     int32_t UpdateCallReportInfo(const CallReportInfo &info) override;
32     int32_t UpdateCallsReportInfo(const CallsReportInfo &info) override;
33     int32_t UpdateDisconnectedCause(const DisconnectedDetails &details) override;
34     int32_t UpdateEventResultInfo(const CellularCallEventInfo &info) override;
35     int32_t UpdateRBTPlayInfo(const RBTPlayInfo info) override;
36     int32_t StartDtmfResult(const int32_t result) override;
37     int32_t StopDtmfResult(const int32_t result) override;
38     int32_t SendUssdResult(const int32_t result) override;
39     int32_t GetImsCallDataResult(const int32_t result) override;
40     int32_t UpdateGetWaitingResult(const CallWaitResponse &response) override;
41     int32_t UpdateSetWaitingResult(const int32_t result) override;
42     int32_t UpdateGetRestrictionResult(const CallRestrictionResponse &result) override;
43     int32_t UpdateSetRestrictionResult(const int32_t result) override;
44     int32_t UpdateSetRestrictionPasswordResult(const int32_t result) override;
45     int32_t UpdateGetTransferResult(const CallTransferResponse &response) override;
46     int32_t UpdateSetTransferResult(const int32_t result) override;
47     int32_t UpdateGetCallClipResult(const ClipResponse &clipResponse) override;
48     int32_t UpdateGetCallClirResult(const ClirResponse &clirResponse) override;
49     int32_t UpdateSetCallClirResult(const int32_t result) override;
50     int32_t StartRttResult(const int32_t result) override;
51     int32_t StopRttResult(const int32_t result) override;
52     int32_t GetImsConfigResult(const GetImsConfigResponse &response) override;
53     int32_t SetImsConfigResult(const int32_t result) override;
54     int32_t GetImsFeatureValueResult(const GetImsFeatureValueResponse &response) override;
55     int32_t SetImsFeatureValueResult(const int32_t result) override;
56     int32_t ReceiveUpdateCallMediaModeResponse(const CallMediaModeResponse &response) override;
57     int32_t InviteToConferenceResult(const int32_t result) override;
58     int32_t SendMmiCodeResult(const MmiCodeInfo &info) override;
59     int32_t CloseUnFinishedUssdResult(const int32_t result) override;
60     int32_t ReportPostDialChar(const std::string &c) override;
61     int32_t ReportPostDialDelay(const std::string &str) override;
62 };
63 } // namespace Telephony
64 } // namespace OHOS
65 
66 #endif
67