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/**
17 * @addtogroup Ril
18 * @{
19 *
20 * @brief Defines Ril-related APIs.
21 *
22 * The radio interface layer (RIL) module provides APIs and callbacks for upper-layer telephony services,
23 * including call, SMS, MMS, network search, and SIM card services.
24 *
25 * @since 4.1
26 * @version 1.3
27 */
28
29/**
30 * @file IRilCallback.idl
31 *
32 * @brief Declares callback APIs of the RIL module.
33 *
34 * @since 4.1
35 * @version 1.3
36 */
37
38/**
39 * @brief Defines the path for the package of the RIL module APIs.
40 *
41 * @since 4.1
42 * @version 1.3
43 */
44package ohos.hdi.ril.v1_3;
45
46import ohos.hdi.ril.v1_2.IRilCallback;
47import ohos.hdi.ril.v1_3.Types;
48
49/**
50 * @brief Declares callback APIs of the RIL module.
51 *
52 * These APIs provide the callback functions for making calls, sending SMS and MMS messages,
53 * activating SIM cards, and accessing the Internet. The caller needs to implement these callbacks.
54 *
55 * @since 4.1
56 * @version 1.3
57 */
58[callback] interface IRilCallback extends ohos.hdi.ril.v1_2.IRilCallback {
59    /**
60      * @brief Callback for the response of querying the international mobile equipment identity software version (IMEISV).
61      *
62      * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
63      * For details, see {@link RilRadioResponseInfo}.
64      * @param imeiSv IMEISV of the device.
65      *
66      * @since 5.0
67      * @version 1.1
68      */
69    [oneway] GetImeiSvResponse([in] struct RilRadioResponseInfo responseInfo, [in] String imeiSv);
70
71    /**
72     * @brief Callback for the response of obtaining the SIM card status.
73     *
74     * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
75     * For details, see {@link RilRadioResponseInfo}.
76     * @param SimCardStatusInfo SIM card status. For details, see {@link SimCardStatusInfo}.
77     *
78     * @since 5.0
79     * @version 1.1
80     */
81    [oneway] GetSimCardStatusResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct SimCardStatusInfo result);
82}
83/** @} */
84