1 /* 2 * Copyright (C) 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 IESIM_SERVICE_CALLBACK_H 17 #define IESIM_SERVICE_CALLBACK_H 18 19 #include <iremote_proxy.h> 20 21 namespace OHOS { 22 namespace Telephony { 23 class IEsimServiceCallback : public IRemoteBroker { 24 public: 25 virtual ~IEsimServiceCallback() = default; 26 enum class EsimServiceCallback { 27 GET_EUICCINFO_RESULT = 0, 28 GET_DOWNLOADABLE_PROFILE_METADATA_RESULT, 29 GET_DOWNLOADABLE_PROFILES_RESULT, 30 GET_EUICC_PROFILE_INFO_LIST_RESULT, 31 GET_DEFAULT_SMDP_ADDRESS_RESULT, 32 SET_DEFAULT_SMDP_ADDRESS_RESULT, 33 SET_PROFILE_NICKNAME_RESULT, 34 CANCEL_SESSION_CALLBACK_RESULT, 35 DOWNLOAD_PROFILE_RESULT, 36 DELETE_PROFILE_RESULT, 37 START_OSU_RESULT, 38 SWITCH_PROFILE_RESULT, 39 RESET_MEMORY_RESULT, 40 GET_EID_RESULT, 41 GET_SUPPORTED_PKIDS_RESULT, 42 GET_CONTRACT_INFO_RESULT, 43 }; 44 virtual int32_t OnEsimServiceCallback(EsimServiceCallback requestId, MessageParcel &data) = 0; 45 public: 46 DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Telephony.IEsimServiceCallback"); 47 }; 48 } 49 } 50 #endif