• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16sequenceable download_profile_config_info_parcel..OHOS.Telephony.DownloadProfileConfigInfo;
17sequenceable download_profile_result_parcel..OHOS.Telephony.DownloadableProfile;
18sequenceable downloadable_profile_parcel..OHOS.Telephony.DownloadProfileResult;
19sequenceable euicc_info_parcel..OHOS.Telephony.EuiccInfo;
20sequenceable get_downloadable_profiles_result_parcel..OHOS.Telephony.GetDownloadableProfileMetadataResult;
21sequenceable profile_info_list_parcel..OHOS.Telephony.GetDownloadableProfilesResult;
22sequenceable profile_metadata_result_parcel..OHOS.Telephony.GetEuiccProfileInfoListResult;
23sequenceable response_esim_result..OHOS.Telephony.ResponseEsimResult;
24
25interface OHOS.Telephony.IEsimService {
26    void GetEid([in] int slotId, [out] String eId);
27    void GetOsuStatus([in] int slotId, [out] int osuStatus);
28    void StartOsu([in] int slotId, [out] int startOsuResult);
29    void GetDownloadableProfileMetadata(
30        [in] int slotId,
31        [in] int portIndex,
32        [in] DownloadableProfile profile,
33        [in] boolean forceDisableProfile,
34        [out] GetDownloadableProfileMetadataResult profileMetadataResult);
35    void GetDownloadableProfiles(
36        [in] int slotId,
37        [in] int portIndex,
38        [in] boolean forceDisableProfile,
39        [out] GetDownloadableProfilesResult profileListResult);
40    void DownloadProfile(
41        [in] int slotId,
42        [in] DownloadProfileConfigInfo configInfo,
43        [in] DownloadableProfile profile,
44        [out] DownloadProfileResult downloadProfileResult);
45    void GetEuiccProfileInfoList([in] int slotId, [out] GetEuiccProfileInfoListResult euiccProfileInfoList);
46    void GetEuiccInfo([in] int slotId, [out] EuiccInfo eUiccInfo);
47    void DeleteProfile([in] int slotId, [in] String iccId, [out] int deleteProfileResult);
48    void SwitchToProfile(
49        [in] int slotId,
50        [in] int portIndex,
51        [in] String iccId,
52        [in] boolean forceDisableProfile,
53        [out] int switchToProfileResult);
54    void SetProfileNickname(
55        [in] int slotId,
56        [in] String iccId,
57        [in] String nickname,
58        [out] int setProfileNicknameResult);
59    void ResetMemory([in] int slotId, [in] int resetOption, [out] int resetMemoryResult);
60    void ReserveProfilesForFactoryRestore([in] int slotId, [out] int restoreResult);
61    void SetDefaultSmdpAddress(
62        [in] int slotId,
63        [in] String defaultSmdpAddress,
64        [out] int setDefaultSmdpAddressResult);
65    void GetDefaultSmdpAddress([in] int slotId, [out] String defaultSmdpAddress);
66    void CancelSession([in] int slotId, [in] String transactionId, [in] int cancelReason,
67        [out] ResponseEsimResult responseResult);
68    void IsEsimSupported([in] int slotId);
69}