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_MANAGER_CALLBACK_TEST_H 17 #define CALL_MANAGER_CALLBACK_TEST_H 18 19 #include <cstdio> 20 21 #include "pac_map.h" 22 23 #include "call_manager_callback.h" 24 25 namespace OHOS { 26 namespace Telephony { 27 class CallManagerCallbackTest : public CallManagerCallback { 28 public: 29 CallManagerCallbackTest() = default; 30 ~CallManagerCallbackTest() = default; 31 int32_t OnCallDetailsChange(const CallAttributeInfo &info) override; 32 int32_t OnCallEventChange(const CallEventInfo &info) override; 33 int32_t OnCallDisconnectedCause(const DisconnectedDetails &details) override; 34 int32_t OnReportAsyncResults(CallResultReportId reportId, AppExecFwk::PacMap &resultInfo) override; 35 int32_t OnOttCallRequest(OttCallRequestId requestId, AppExecFwk::PacMap &info) override; 36 int32_t OnReportMmiCodeResult(const MmiCodeInfo &info) override; 37 int32_t OnReportAudioDeviceChange(const AudioDeviceInfo &info) override; 38 int32_t OnReportPostDialDelay(const std::string &str) override; 39 int32_t OnUpdateImsCallModeChange(const CallMediaModeInfo &imsCallModeInfo) override; 40 int32_t OnCallSessionEventChange(const CallSessionEvent &callSessionEventOptions) override; 41 int32_t OnPeerDimensionsChange(const PeerDimensionsDetail &peerDimensionsDetail) override; 42 int32_t OnCallDataUsageChange(const int64_t dataUsage) override; 43 int32_t OnUpdateCameraCapabilities(const CameraCapabilities &cameraCapabilities) override; 44 }; 45 } // namespace Telephony 46 } // namespace OHOS 47 #endif // CALL_MANAGER_CALLBACK_TEST_H 48