17859cbb8Sopenharmony_ci/*
27859cbb8Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd.
37859cbb8Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
47859cbb8Sopenharmony_ci * you may not use this file except in compliance with the License.
57859cbb8Sopenharmony_ci * You may obtain a copy of the License at
67859cbb8Sopenharmony_ci *
77859cbb8Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
87859cbb8Sopenharmony_ci *
97859cbb8Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
107859cbb8Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
117859cbb8Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127859cbb8Sopenharmony_ci * See the License for the specific language governing permissions and
137859cbb8Sopenharmony_ci * limitations under the License.
147859cbb8Sopenharmony_ci */
157859cbb8Sopenharmony_cisequenceable download_profile_config_info_parcel..OHOS.Telephony.DownloadProfileConfigInfo;
167859cbb8Sopenharmony_cisequenceable download_profile_result_parcel..OHOS.Telephony.DownloadableProfile;
177859cbb8Sopenharmony_cisequenceable downloadable_profile_parcel..OHOS.Telephony.DownloadProfileResult;
187859cbb8Sopenharmony_cisequenceable euicc_info_parcel..OHOS.Telephony.EuiccInfo;
197859cbb8Sopenharmony_cisequenceable get_downloadable_profiles_result_parcel..OHOS.Telephony.GetDownloadableProfileMetadataResult;
207859cbb8Sopenharmony_cisequenceable profile_info_list_parcel..OHOS.Telephony.GetDownloadableProfilesResult;
217859cbb8Sopenharmony_cisequenceable profile_metadata_result_parcel..OHOS.Telephony.GetEuiccProfileInfoListResult;
227859cbb8Sopenharmony_cisequenceable response_esim_result..OHOS.Telephony.ResponseEsimResult;
237859cbb8Sopenharmony_ci
247859cbb8Sopenharmony_ciinterface OHOS.Telephony.IEsimService {
257859cbb8Sopenharmony_ci    void GetEid([in] int slotId, [out] String eId);
267859cbb8Sopenharmony_ci    void GetOsuStatus([in] int slotId, [out] int osuStatus);
277859cbb8Sopenharmony_ci    void StartOsu([in] int slotId, [out] int startOsuResult);
287859cbb8Sopenharmony_ci    void GetDownloadableProfileMetadata(
297859cbb8Sopenharmony_ci        [in] int slotId,
307859cbb8Sopenharmony_ci        [in] int portIndex,
317859cbb8Sopenharmony_ci        [in] DownloadableProfile profile,
327859cbb8Sopenharmony_ci        [in] boolean forceDisableProfile,
337859cbb8Sopenharmony_ci        [out] GetDownloadableProfileMetadataResult profileMetadataResult);
347859cbb8Sopenharmony_ci    void GetDownloadableProfiles(
357859cbb8Sopenharmony_ci        [in] int slotId,
367859cbb8Sopenharmony_ci        [in] int portIndex,
377859cbb8Sopenharmony_ci        [in] boolean forceDisableProfile,
387859cbb8Sopenharmony_ci        [out] GetDownloadableProfilesResult profileListResult);
397859cbb8Sopenharmony_ci    void DownloadProfile(
407859cbb8Sopenharmony_ci        [in] int slotId,
417859cbb8Sopenharmony_ci        [in] DownloadProfileConfigInfo configInfo,
427859cbb8Sopenharmony_ci        [in] DownloadableProfile profile,
437859cbb8Sopenharmony_ci        [out] DownloadProfileResult downloadProfileResult);
447859cbb8Sopenharmony_ci    void GetEuiccProfileInfoList([in] int slotId, [out] GetEuiccProfileInfoListResult euiccProfileInfoList);
457859cbb8Sopenharmony_ci    void GetEuiccInfo([in] int slotId, [out] EuiccInfo eUiccInfo);
467859cbb8Sopenharmony_ci    void DeleteProfile([in] int slotId, [in] String iccId, [out] int deleteProfileResult);
477859cbb8Sopenharmony_ci    void SwitchToProfile(
487859cbb8Sopenharmony_ci        [in] int slotId,
497859cbb8Sopenharmony_ci        [in] int portIndex,
507859cbb8Sopenharmony_ci        [in] String iccId,
517859cbb8Sopenharmony_ci        [in] boolean forceDisableProfile,
527859cbb8Sopenharmony_ci        [out] int switchToProfileResult);
537859cbb8Sopenharmony_ci    void SetProfileNickname(
547859cbb8Sopenharmony_ci        [in] int slotId,
557859cbb8Sopenharmony_ci        [in] String iccId,
567859cbb8Sopenharmony_ci        [in] String nickname,
577859cbb8Sopenharmony_ci        [out] int setProfileNicknameResult);
587859cbb8Sopenharmony_ci    void ResetMemory([in] int slotId, [in] int resetOption, [out] int resetMemoryResult);
597859cbb8Sopenharmony_ci    void ReserveProfilesForFactoryRestore([in] int slotId, [out] int restoreResult);
607859cbb8Sopenharmony_ci    void SetDefaultSmdpAddress(
617859cbb8Sopenharmony_ci        [in] int slotId,
627859cbb8Sopenharmony_ci        [in] String defaultSmdpAddress,
637859cbb8Sopenharmony_ci        [out] int setDefaultSmdpAddressResult);
647859cbb8Sopenharmony_ci    void GetDefaultSmdpAddress([in] int slotId, [out] String defaultSmdpAddress);
657859cbb8Sopenharmony_ci    void CancelSession([in] int slotId, [in] String transactionId, [in] int cancelReason,
667859cbb8Sopenharmony_ci        [out] ResponseEsimResult responseResult);
677859cbb8Sopenharmony_ci    void IsEsimSupported([in] int slotId);
687859cbb8Sopenharmony_ci}