• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 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 6.0
26 * @version 1.0
27 */
28
29/**
30 * @file IRilCallback.idl
31 *
32 * @brief Declares callback APIs of the RIL module.
33 *
34 * @since 6.0
35 * @version 1.0
36 */
37
38/**
39 * @brief Defines the path for the package of the RIL module APIs.
40 *
41 * @since 6.0
42 * @version 1.0
43 */
44package ohos.hdi.ril.v1_5;
45
46import ohos.hdi.ril.v1_4.IRilCallback;
47import ohos.hdi.ril.v1_5.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 6.0
56 * @version 1.0
57 */
58[callback] interface IRilCallback extends ohos.hdi.ril.v1_4.IRilCallback {
59    /**
60     * @brief Callback for the response of getting the data service main card slot.
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 primarySlotId.
65     *
66     * @since 6.0
67     * @version 1.0
68     */
69    [oneway] GetPrimarySlotResponse([in] struct RilRadioResponseInfo responseInfo, [in] int primarySlotId);
70
71    /**
72     * @brief Callback for the response of setting the data service main card slot when the modem does not require a
73     * software power on/off.
74     *
75     * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
76     * For details, see {@link RilRadioResponseInfo}.
77     *
78     * @since 6.0
79     * @version 1.0
80     */
81    [oneway] SetPrimarySlotResponse([in] struct RilRadioResponseInfo responseInfo);
82}
83/** @} */