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_PROXY_H 17 #define CALL_STATUS_CALLBACK_PROXY_H 18 19 #include "iremote_proxy.h" 20 #include "i_call_status_callback.h" 21 22 namespace OHOS { 23 namespace Telephony { 24 class CallStatusCallbackProxy : public IRemoteProxy<ICallStatusCallback> { 25 public: 26 explicit CallStatusCallbackProxy(const sptr<IRemoteObject> &impl); 27 virtual ~CallStatusCallbackProxy() = default; 28 29 int32_t UpdateCallReportInfo(const CallReportInfo &info) override; 30 int32_t UpdateCallsReportInfo(const CallsReportInfo &info) override; 31 int32_t UpdateDisconnectedCause(const DisconnectedDetails &details) override; 32 int32_t UpdateEventResultInfo(const CellularCallEventInfo &info) override; 33 int32_t UpdateRBTPlayInfo(const RBTPlayInfo info) override; 34 int32_t UpdateGetWaitingResult(const CallWaitResponse &callWaitResponse) override; 35 int32_t UpdateSetWaitingResult(const int32_t result) override; 36 int32_t UpdateGetRestrictionResult(const CallRestrictionResponse &callRestrictionResult) override; 37 int32_t UpdateSetRestrictionResult(const int32_t result) override; 38 int32_t UpdateGetTransferResult(const CallTransferResponse &callTransferResponse) override; 39 int32_t UpdateSetTransferResult(const int32_t result) override; 40 int32_t UpdateGetCallClipResult(const ClipResponse &clipResponse) override; 41 int32_t UpdateGetCallClirResult(const ClirResponse &clirResponse) override; 42 int32_t UpdateSetCallClirResult(const int32_t result) override; 43 int32_t StartRttResult(const int32_t result) override; 44 int32_t StopRttResult(const int32_t result) override; 45 int32_t GetImsConfigResult(const GetImsConfigResponse &response) override; 46 int32_t SetImsConfigResult(const int32_t result) override; 47 int32_t GetImsFeatureValueResult(const GetImsFeatureValueResponse &response) override; 48 int32_t SetImsFeatureValueResult(const int32_t result) override; 49 int32_t ReceiveUpdateCallMediaModeResponse(const CallMediaModeResponse &response) override; 50 int32_t InviteToConferenceResult(const int32_t result) override; 51 int32_t StartDtmfResult(const int32_t result) override; 52 int32_t StopDtmfResult(const int32_t result) override; 53 int32_t SendUssdResult(const int32_t result) override; 54 int32_t GetImsCallDataResult(const int32_t result) override; 55 int32_t SendMmiCodeResult(const MmiCodeInfo &info) override; 56 57 private: 58 static inline BrokerDelegator<CallStatusCallbackProxy> delegator_; 59 }; 60 } // namespace Telephony 61 } // namespace OHOS 62 63 #endif 64