• 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 */
15sequenceable download_profile_config_info_parcel..OHOS.Telephony.DownloadProfileConfigInfo;
16sequenceable download_profile_result_parcel..OHOS.Telephony.DownloadableProfile;
17sequenceable downloadable_profile_parcel..OHOS.Telephony.DownloadProfileResult;
18sequenceable euicc_info_parcel..OHOS.Telephony.EuiccInfo;
19sequenceable get_downloadable_profiles_result_parcel..OHOS.Telephony.GetDownloadableProfileMetadataResult;
20sequenceable profile_info_list_parcel..OHOS.Telephony.GetDownloadableProfilesResult;
21sequenceable profile_metadata_result_parcel..OHOS.Telephony.GetEuiccProfileInfoListResult;
22sequenceable response_esim_result..OHOS.Telephony.ResponseEsimResult;
23sequenceable contract_request_data_parcel..OHOS.Telephony.ContractRequestData;
24interface OHOS.Telephony.IEsimServiceCallback;
25interface OHOS.Telephony.IEsimService {
26    void GetEid([in] int slotId, [in] IEsimServiceCallback listener);
27    void GetOsuStatus([in] int slotId, [out] int osuStatus);
28    void StartOsu([in] int slotId, [in] IEsimServiceCallback listener);
29    void GetDownloadableProfileMetadata(
30        [in] int slotId,
31        [in] int portIndex,
32        [in] DownloadableProfile profile,
33        [in] boolean forceDisableProfile,
34        [in] IEsimServiceCallback listener);
35    void GetDownloadableProfiles(
36        [in] int slotId,
37        [in] int portIndex,
38        [in] boolean forceDisableProfile,
39        [in] IEsimServiceCallback listener);
40    void DownloadProfile(
41        [in] int slotId,
42        [in] DownloadProfileConfigInfo configInfo,
43        [in] DownloadableProfile profile,
44        [in] IEsimServiceCallback listener);
45    void GetEuiccProfileInfoList([in] int slotId, [in] IEsimServiceCallback listener);
46    void GetEuiccInfo([in] int slotId, [in] IEsimServiceCallback listener);
47    void DeleteProfile([in] int slotId, [in] String iccId, [in] IEsimServiceCallback listener);
48    void SwitchToProfile(
49        [in] int slotId,
50        [in] int portIndex,
51        [in] String iccId,
52        [in] boolean forceDisableProfile,
53        [in] IEsimServiceCallback listener);
54    void SetProfileNickname(
55        [in] int slotId,
56        [in] String iccId,
57        [in] String nickname,
58        [in] IEsimServiceCallback listener);
59    void ResetMemory([in] int slotId, [in] int resetOption, [in] IEsimServiceCallback listener);
60    void ReserveProfilesForFactoryRestore([in] int slotId, [out] int restoreResult);
61    void SetDefaultSmdpAddress(
62        [in] int slotId,
63        [in] String defaultSmdpAddress,
64        [in] IEsimServiceCallback listener);
65    void GetDefaultSmdpAddress([in] int slotId, [in] IEsimServiceCallback listener);
66    void CancelSession([in] int slotId, [in] String transactionId, [in] int cancelReason,
67        [in] IEsimServiceCallback listener);
68    void IsSupported([in] int slotId);
69    void AddProfile([in] int slotId, [in] DownloadableProfile profile);
70    void GetSupportedPkids([in] int slotId, [in] IEsimServiceCallback listener);
71    void GetContractInfo(
72        [in] int slotId,
73        [in] ContractRequestData contractRequestData,
74        [in] IEsimServiceCallback listener);
75}