1 /* 2 * Copyright (C) 2023-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 I_SATELLITE_CORE_CALLBACK_H 17 #define I_SATELLITE_CORE_CALLBACK_H 18 19 #include "iremote_proxy.h" 20 #include "satellite_core_callback_ipc_interface_code.h" 21 #include "event_handler.h" 22 23 namespace OHOS { 24 namespace Telephony { 25 using namespace AppExecFwk; 26 27 class ISatelliteCoreCallback : public IRemoteBroker { 28 public: 29 DECLARE_INTERFACE_DESCRIPTOR(u"ohos.telephony.ISatelliteCoreCallback"); 30 31 public: 32 /** 33 * @brief SetRadioStateResponse. 34 * 35 * @param event event which contains the response data. 36 * @return Returns {@code TELEPHONY_SUCCESS} on success, others on failure. 37 */ 38 virtual int32_t SetRadioStateResponse(InnerEvent::Pointer &event) = 0; 39 40 /** 41 * @brief RadioStateChanged. 42 * 43 * @param event event which contains the response data. 44 * @return Returns {@code TELEPHONY_SUCCESS} on success, others on failure. 45 */ 46 virtual int32_t RadioStateChanged(InnerEvent::Pointer &event) = 0; 47 48 /** 49 * @brief SimStateChanged. 50 * 51 * @param event event which contains the response data. 52 * @return Returns {@code TELEPHONY_SUCCESS} on success, others on failure. 53 */ 54 virtual int32_t SimStateChanged(InnerEvent::Pointer &event) = 0; 55 56 /** 57 * @brief SatelliteStatusChanged. 58 * 59 * @param event event which contains the response data. 60 * @return Returns {@code TELEPHONY_SUCCESS} on success, others on failure. 61 */ 62 virtual int32_t SatelliteStatusChanged(InnerEvent::Pointer &event) = 0; 63 }; 64 65 } // namespace Telephony 66 } // namespace OHOS 67 #endif // I_SATELLITE_CORE_CALLBACK_H