/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @addtogroup Ril
 * @{
 *
 * @brief Defines Ril-related APIs.
 *
 * The radio interface layer (RIL) module provides APIs and callbacks for upper-layer
 * telephony services, including call, SMS, MMS, network search, and SIM card services.
 *
 * @since 5.1
 * @version 1.0
 */

/**
 * @file IRil.idl
 *
 * @brief Declares the request API of the RIL module.
 *
 * @since 5.1
 * @version 1.0
 */

/**
 * @brief Defines the path for the package of the RIL module APIs.
 *
 * @since 5.1
 * @version 1.0
 */
package ohos.hdi.ril.v1_4;

import ohos.hdi.ril.v1_4.IRilCallback;
import ohos.hdi.ril.v1_3.IRil;
import ohos.hdi.ril.v1_4.Types;

/**
 * @brief Declares the request API of the RIL module.
 *
 * Request APIs are called to make calls, send SMS and MMS messages, activate SIM cards,
 * and access the Internet.
 *
 * @since 5.1
 * @version 1.0
 */
interface IRil extends ohos.hdi.ril.v1_3.IRil {
    /**
      * @brief Sets an IRil callback.
      *
      * @param rilCallback Callback to set. For details, see {@link IRilCallback}.
      *
      * @return Returns <b>0</b> if the operation is successful.
      * @return Returns a non-0 value if the operation fails.
      *
      * @since 5.1
      * @version 1.0
      */
    [oneway] SetCallback1_4([in] IRilCallback rilCallback);

    /**
    * @brief Send UePolicy Command result.
    *
    * @param slotId Card slot ID.
    * @param serialId Serial ID of a request.
    * @param msgbuffer
    *
    * @return Returns <b>0</b> if the operation is successful.
    * @return Returns a non-0 value if the operation fails.
    *
    * @since 5.1
    * @version 1.0
    */
    [oneway] SendUrspDecodeResult([in] int slotId, [in] int serialId,
      [in] struct UePolicyDecodeResult uePolicyDecodeResult);

    /**
    * @brief Send UePolicy Section Identifier.
    *
    * @param slotId Card slot ID.
    * @param serialId Serial ID of a request.
    * @param msgbuffer
    *
    * @return Returns <b>0</b> if the operation is successful.
    * @return Returns a non-0 value if the operation fails.
    *
    * @since 5.1
    * @version 1.0
    */
    [oneway] SendUePolicySectionIdentifier([in] int slotId, [in] int serialId,
      [in] struct UePolicySectionIdentifier uePolicySectionIdentifier);
    
    /**
    * @brief ImsRsdList.
    *
    * @param slotId Card slot ID.
    * @param serialId Serial ID of a request.
    * @param msgbuffer
    *
    * @return Returns <b>0</b> if the operation is successful.
    * @return Returns a non-0 value if the operation fails.
    *
    * @since 5.1
    * @version 1.0
    */
    [oneway] SendImsRsdList([in] int slotId, [in] int serialId, [in] struct ImsRsdList imsRsdList);

    /**
    * @brief GetNetworkSliceAllowedNssai.
    *
    * @param slotId Card slot ID.
    * @param serialId Serial ID of a request.
    * @param msgbuffer
    *
    * @return Returns <b>0</b> if the operation is successful.
    * @return Returns a non-0 value if the operation fails.
    *
    * @since 5.1
    * @version 1.0
    */
    [oneway] GetNetworkSliceAllowedNssai([in] int slotId, [in] int serialId,
      [in] struct SyncAllowedNssaiInfo syncAllowedNssaiInfo);

    /**
    * @brief GetNetworkSliceEhplmn.
    *
    * @param slotId Card slot ID.
    * @param serialId Serial ID of a request.
    *
    * @return Returns <b>0</b> if the operation is successful.
    * @return Returns a non-0 value if the operation fails.
    *
    * @since 5.1
    * @version 1.0
    */
    [oneway] GetNetworkSliceEhplmn([in] int slotId, [in] int serialId);

    /**
    * @brief Activates the packet data protocol (PDP) context.
    *
    * @param slotId Card slot ID.
    * @param serialId Serial ID of a request.
    * @param dataCallInfo Data service information with apn types. For details, see {@link DataCallInfoWithApnTypes}.
    *
    * @return Returns <b>0</b> if the operation is successful.
    * @return Returns a non-0 value if the operation fails.
    *
    * @since 5.1
    * @version 1.0
    */
    [oneway] ActivatePdpContextWithApnTypesforSlice([in] int slotId, [in] int serialId,
        [in] struct DataCallInfoWithApnTypesforSlice dataCallInfo);
}
/** @} */