• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 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
23 * telephony services, including call, SMS, MMS, network search, and SIM card services.
24 *
25 * @since 4.1
26 * @version 1.2
27 */
28
29/**
30 * @file IRil.idl
31 *
32 * @brief Declares the request API of the RIL module.
33 *
34 * @since 4.1
35 * @version 1.2
36 */
37
38/**
39 * @brief Defines the path for the package of the RIL module APIs.
40 *
41 * @since 4.1
42 * @version 1.2
43 */
44package ohos.hdi.ril.v1_2;
45
46import ohos.hdi.ril.v1_2.IRilCallback;
47import ohos.hdi.ril.v1_1.IRil;
48import ohos.hdi.ril.v1_2.Types;
49
50/**
51 * @brief Declares the request API of the RIL module.
52 *
53 * Request APIs are called to make calls, send SMS and MMS messages, activate SIM cards,
54 * and access the Internet.
55 *
56 * @since 4.1
57 * @version 1.2
58 */
59interface IRil extends ohos.hdi.ril.v1_1.IRil {
60     /**
61      * @brief Sets an IRil callback.
62      *
63      * @param rilCallback Callback to set. For details, see {@link IRilCallback}.
64      *
65      * @return Returns <b>0</b> if the operation is successful.
66      * @return Returns a non-0 value if the operation fails.
67      *
68      * @since 4.1
69      * @version 1.2
70      */
71    [oneway] SetCallback1_2([in] IRilCallback rilCallback);
72
73     /**
74      * @brief Send sim matched operator info.
75      *
76      * @param slotId Card slot ID.
77      * @param serialId Serial ID of a request.
78      * @param ncfgOperatorInfo Operator info. For details, see {@link Types}.
79      *
80      * @return Returns <b>0</b> if the operation is successful.
81      * @return Returns a non-0 value if the operation fails.
82      *
83      * @since 4.1
84      * @version 1.2
85      */
86    [oneway] SendSimMatchedOperatorInfo([in] int slotId, [in] int serialId,
87        [in] struct NcfgOperatorInfo ncfgOperatorInfo);
88
89     /**
90      * @brief Clean all data connections.
91      *
92      * @param slotId Card slot ID.
93      * @param serialId Serial ID of a request.
94      *
95      * @return Returns <b>0</b> if the operation is successful.
96      * @return Returns a non-0 value if the operation fails.
97      *
98      * @since 4.1
99      * @version 1.2
100      */
101    [oneway] CleanAllConnections([in] int slotId, [in] int serialId);
102
103     /**
104      * @brief Get nr ssbid info.
105      *
106      * @param slotId Card slot ID.
107      * @param serialId Serial ID of a request.
108      *
109      * @return Returns <b>0</b> if the operation is successful.
110      * @return Returns a non-0 value if the operation fails.
111      *
112      * @since 4.1
113      * @version 1.2
114      */
115    [oneway] GetNrSsbId([in] int slotId, [in] int serialId);
116}
117/** @} */
118