4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
23 * @ingroup TelephonyAPI
24 * @addtogroup NetText_TAPI NetText(SMS)
27 * @file ITapiNettext.h
29 @brief This file serves as a "C" header file defines functions for Tapi Nettext\n
30 It contains a sample set of function prototypes that would be required by applications.
34 #ifndef _ITAPI_NETTEXT_H_
35 #define _ITAPI_NETTEXT_H_
37 #include <tapi_common.h>
39 #include <TelDefines.h>
47 * @brief This API is used to send an SMS message to the network. This API interface allows transmitting SMS PDU as defined by
48 * 3GPP TS 23.040 (SMS-SUBMIT, SMS-COMMAND) to lower layers. This API allows keeping the dedicated link at lower layers
49 * by passing information as more messages to send in parameters. This will enable not to release if a dedicated connection is
50 * used for transmission. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
52 * @par Sync (or) Async:
53 * This is an Asynchronous API.
55 * @par Important Notes:
63 * - handle from tel_init()
65 * @param [in] pDataPackage
66 * - Contains SMS-SUBMIT TPDU
68 * @param [in] bMoreMsgToSend
69 * - will be set to TRUE when there are more than one message to be send or Multiple segmented concatenated
70 * message to be send, otherwise FALSE. This flag indicates OEM that more messages to send.
72 * @param [in] callback
73 * - To register callback function for result of this function.
75 * @param [in] user_data
76 * - user data for user specification
78 * @par Async Response Message:
79 * Asynchronous return status is indicated by #TelSmsResponse_t.
87 * @return Return Type (int) \n
88 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
89 * - Else it will return failure and error code (Refer #TapiResult_t)
91 * @par Prospective Clients:
95 * #include <ITapiNetText.h>
97 * TelSmsDatapackageInfo_t *pDataPackage;
98 * int ret_status = TAPI_API_SUCCESS;
100 * tapi_response_cb callback;
104 * pDataPackage = (TelSmsDatapackageInfo_t*) malloc(sizeof(TelSmsDatapackageInfo_t));
106 * pDataPackage fill the structure appropriately/
107 * Sca parameter is optional. If you don't provide Service center address, you should fill "00" in sca array.
108 * MsgLength is length of szData
109 * fill the szData in TelSmsDatapackageInfo_t with SMS-SUBMIT or SMS-COMMAND TPDU.
111 * ret_status = tel_send_sms(handle, pDataPackage, bMoreMsgToSend, callback, user_data);
122 /*================================================================================================*/
123 int tel_send_sms(TapiHandle *handle, const TelSmsDatapackageInfo_t *pDataPackage, int bMoreMsgToSend, tapi_response_cb callback, void* user_data);
126 * @brief This function reads a message from SIM card storage. SIM index (index used when storing the SMS) number to be passed to in order
127 * to read particular SMS message. Total number of messages can be retrieved by #TelTapiSmsGetCount function.
128 * Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
130 * @par Sync (or) Async:
131 * This is an Asynchronous API.
133 * @par Important Notes:
141 * - handle from tel_init()
144 * - Index number of the message to be read
146 * @param [in] callback
147 * - To register callback function for result of this function.
149 * @param [in] user_data
150 * - user data for user specification
152 * @par Async Response Message:
153 * Asynchronous return status is indicated by #TelSmsResponse_t.
161 * @return Return Type (int) \n
162 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
163 * - Else it will return failure and error code (Refer #TapiResult_t)
165 * @par Prospective Clients:
169 * #include <ITapiNetText.h>
170 * int ret_status = TAPI_API_SUCCESS;
171 * TapiHandle *handle;//Obtained from tel_init();
172 * tapi_response_cb callback;
176 * ret_status = tel_read_sms_in_sim(handle, index, callback, user_data);
188 /*================================================================================================*/
189 int tel_read_sms_in_sim(TapiHandle *handle, int index, tapi_response_cb callback, void* user_data);
192 * @brief This function writes a message to SIM storage area.
193 * Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
195 * @par Sync (or) Async:
196 * This is an Asynchronous API.
198 * @par Important Notes:
206 * - handle from tel_init()
208 * @param [in] pWriteData
209 * - SMS message structure.
211 * @param [in] callback
212 * - To register callback function for result of this function.
214 * @param [in] user_data
215 * - user data for user specification
217 * @par Async Response Message:
218 * Asynchronous return status is indicated by #TelSmsResponse_t.
226 * @return Return Type (int) \n
227 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
228 * - Else it will return failure and error code (Refer #TapiResult_t)
230 * @par Prospective Clients:
234 * #include <ITapiNetText.h>
236 * int ret_status = TAPI_API_SUCCESS;
237 * TapiHandle *handle;//Obtained from tel_init();
238 * tapi_response_cb callback;
241 * TelSmsData_t *pWriteData;
242 * char *msg = "This is an Test SMS";
243 * char *SCA = "821091";
245 * pWriteData =(TelSmsData_t *)malloc(sizeof(TelSmsData_t));
247 * conv_service_center_address(pWriteData->SmsData.Sca, SCA); //convert service center address
248 * conv_msg_into_tpdu(pWriteData->SmsData.szData, pWriteData->SmsData.MsgLength, msg); // convert message into TPDU
249 * pWrite->MsgStatus = TAPI_NETTEXT_STATUS_READ;
250 * pWrite->SimIndex = -1;
252 * ret_status = tel_write_sms_in_sim(handle, pWriteData, callback, user_data);
263 /*================================================================================================*/
264 int tel_write_sms_in_sim(TapiHandle *handle, const TelSmsData_t *pWriteData, tapi_response_cb callback, void* user_data);
267 * @brief This function deletes a message specified by index (SIM index used when storing the SMS)
268 * number from the SIM storage area. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
270 * @par Sync (or) Async:
271 * This is an Asynchronous API.
273 * @par Important Notes:
281 * - handle from tel_init()
284 * - Message index to delete.
286 * @param [in] callback
287 * - To register callback function for result of this function.
289 * @param [in] user_data
290 * - user data for user specification
292 * @par Async Response Message:
293 * Asynchronous return status is indicated by #TelSmsResponse_t.
301 * @return Return Type (int) \n
302 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
303 * - Else it will return failure and error code (Refer #TapiResult_t).\n
304 * @par Prospective Clients:
308 * #include <ITapiNetText.h>
310 * int ret_status = TAPI_API_SUCCESS;
311 * TapiHandle *handle;//Obtained from tel_init();
312 * tapi_response_cb callback;
316 * ret_status = tel_delete_sms_in_sim(handle, index, callback, user_data);
328 /*================================================================================================*/
329 int tel_delete_sms_in_sim(TapiHandle *handle, int index, tapi_response_cb callback, void* user_data);
332 * @brief This function is used to retrieve message count information like Total record count,
333 * used record count and the indices list for SIM Storage. This is an asynchronous function and
334 * the response will be sent back in the callback function. Access to this API is limited, we recommend you use Message Framework API(MAPI) besides.
335 * Access to this API is limited to in-house application.
337 * @par Sync (or) Async:
338 * This is an Asynchronous API.
340 * @par Important Notes:
348 * - handle from tel_init()
350 * @param [in] callback
351 * - To register callback function for result of this function.
353 * @param [in] user_data
354 * - user data for user specification
357 * @par Async Response Message:
358 * Asynchronous return status is indicated by #TelSmsResponse_t.
366 * @return Return Type (int) \n
367 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
368 * - Else it will return failure and error code (Refer #TapiResult_t)
369 * @par Prospective Clients:
373 * #include <ITapiNetText.h>
375 * int ret_status = TAPI_API_SUCCESS;
376 * TapiHandle *handle;//Obtained from tel_init();
377 * tapi_response_cb callback;
380 * ret_status = tel_get_sms_count(handle, callback, user_data);
391 /*================================================================================================*/
392 int tel_get_sms_count(TapiHandle *handle, tapi_response_cb callback, void* user_data);
396 * @brief This function is used to set SMS CB Message Identifiers in the appropriate EF-CBMI/EF-CBMIR file in (U)SIM.
397 * This function also indicates underlying provider to enable or disable CB Channel on which CB messages are received.
398 * Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI) besides.
400 * @par Sync (or) Async:
401 * This is an Asynchronous API.
403 * @par Important Notes:
411 * - handle from tel_init()
413 * @param [in] pCBConfig
414 * - This structure contains parameters to set SMS CB configuration \n
415 * (i) Cell broadcast service state. (Enabled/disabled.) \n
416 * (ii) Cell broadcast message identifier, which denotes whether all cell broadcast message identifiers are selected or only
418 * (iii) The list count of message identifiers to be set.\n
419 * (iv) The actual list of message identifiers to be set. Each identifier occupies 2 bytes. And the list ranges from 0x00 to 0xff. \n
420 * These message identifiers denote the source and type of the CB message. Based on the message identifiers set in the SIM,
421 * the ME receives CB messages with selected message identifiers.
423 * @param [in] callback
424 * - To register callback function for result of this function.
426 * @param [in] user_data
427 * - user data for user specification
429 * @par Async Response Message:
430 * Asynchronous return status is indicated by #TelSmsResponse_t.
438 * @return Return Type (int) \n
439 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
440 * - Else it will return failure and error code (Refer #TapiResult_t)
442 * @par Prospective Clients:
446 * #include <ITapiNetText.h>
448 * int ret_status = TAPI_API_SUCCESS;
449 * TapiHandle *handle;//Obtained from tel_init();
450 * tapi_response_cb callback;
452 * TelSmsCbConfig_t *pCBConfig = NULL;
454 * pCBConfig = (TelSmsCbConfig_t *)malloc(sizeof(TelSmsCbConfig_t));
455 * pCBConfig->bCBEnabled = 1; //fill structure appropriately
456 * pCBConfig->SelectedId = 0x01;
457 * pCBConfig->MsgIdCount = 0x02;
459 * pCBConfig->MsgIDs[0] = 0x0c;
460 * pCBConfig->MsgIDs[1] = 0x0c;
461 * pCBConfig->MsgIDs[2] = 0xdf;
462 * pCBConfig->MsgIDs[3] = 0x00;
464 * ret_status = tel_set_sms_cb_config(handle, pCBConfig, callback, user_data);
476 /*================================================================================================*/
477 int tel_set_sms_cb_config(TapiHandle *handle, const TelSmsCbConfig_t *pCBConfig, tapi_response_cb callback, void* user_data);
480 * @brief This function is used to retrieve SMS CB configuration parameters from EFcbmi file in the SIM.
481 * Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
483 * @par Sync (or) Async:
484 * This is an Asynchronous API.
486 * @par Important Notes:
494 * - handle from tel_init()
496 * @param [in] callback
497 * - To register callback function for result of this function.
499 * @param [in] user_data
500 * - user data for user specification
502 * @par Async Response Message:
503 * Asynchronous return status is indicated by #TelSmsResponse_t.
511 * @return Return Type (int) \n
512 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
513 * - Else it will return failure and error code (Refer #TapiResult_t)
514 * @par Prospective Clients:
518 * #include <ITapiNetText.h>
520 * int ret_status = TAPI_API_SUCCESS;
521 * TapiHandle *handle;//Obtained from tel_init();
522 * tapi_response_cb callback;
525 * ret_status = tel_get_sms_cb_config(handle, callback, user_data);
536 /*================================================================================================*/
537 int tel_get_sms_cb_config(TapiHandle *handle, tapi_response_cb callback, void* user_data);
541 * @brief This function is used to set SMS preferred bearer on which SMS has to be transmitted.
542 * Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
544 * @par Sync (or) Async:
545 * This is an Asynchronous API.
547 * @par Important Notes:
555 * - handle from tel_init()
557 * @param [in] BearerType
558 * - Specifies the bearer type.
560 * @param [in] callback
561 * - To register callback function for result of this function.
563 * @param [in] user_data
564 * - user data for user specification
566 * @par Async Response Message:
567 * Asynchronous return status is indicated by #TelSmsResponse_t
575 * @return Return Type (int) \n
576 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
577 * - Else it will return failure and error code (Refer #TapiResult_t)
578 * @par Prospective Clients:
582 * #include <ITapiNetText.h>
583 * int ret_status = TAPI_API_SUCCESS;
584 * TapiHandle *handle;//Obtained from tel_init();
585 * tapi_response_cb callback;
587 * TelSmsBearerType_t BearerType = TAPI_NETTEXT_BEARER_PS_ONLY;
589 * ret_status = tel_set_sms_preferred_bearer(handle, BearerType, callback, user_data);
601 /*================================================================================================*/
602 int tel_set_sms_preferred_bearer(TapiHandle *handle, TelSmsBearerType_t BearerType, tapi_response_cb callback, void* user_data);
605 * @brief This function is used to get SMS preferred bearer on which SMS has to be transmitted.
606 * This is an asynchronous function. Access to this API is limited to in-house application and , we recommend you use Message Framework API(MAPI).
608 * @par Sync (or) Async:
609 * This is an Asynchronous API.
611 * @par Important Notes:
619 * - handle from tel_init()
621 * @param [in] callback
622 * - To register callback function for result of this function.
624 * @param [in] user_data
625 * - user data for user specification
627 * @par Async Response Message:
628 * Asynchronous return status is indicated by #TelSmsResponse_t.
636 * @return Return Type (int) \n
637 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
638 * - Else it will return failure and error code (Refer #TapiResult_t)
639 * @par Prospective Clients:
643 * #include <ITapiNetText.h>
645 * int ret_status = TAPI_API_SUCCESS;
646 * TapiHandle *handle;//Obtained from tel_init();
647 * tapi_response_cb callback;
650 * ret_status = tel_get_sms_preferred_bearer(handle, callback, user_data);
662 /*================================================================================================*/
663 int tel_get_sms_preferred_bearer(TapiHandle *handle, tapi_response_cb callback, void* user_data);
666 * @brief This function is used to get the SMS parameters for a particular SMS (sent/received)
667 * based on the SIM index where it is stored. This is an asynchronous function. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
669 * @par Sync (or) Async:
670 * This is an Asynchronous API.
672 * @par Important Notes:
680 * - handle from tel_init()
683 * - SIM index where the SMS is stored
685 * @param [in] callback
686 * - To register callback function for result of this function.
688 * @param [in] user_data
689 * - user data for user specification
691 * @par Async Response Message:
692 * Asynchronous return status is indicated by #TelSmsResponse_t
700 * @return Return Type (int) \n
701 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
702 * - Else it will return failure and error code (Refer #TapiResult_t)
703 * @par Prospective Clients:
707 * #include <ITapiNetText.h>
709 * int ret_status = TAPI_API_SUCCESS;
710 * TapiHandle *handle;//Obtained from tel_init();
711 * tapi_response_cb callback;
715 * ret_status = tel_get_sms_parameters(handle, index, callback, user_data);
727 /*================================================================================================*/
728 int tel_get_sms_parameters(TapiHandle *handle, int index, tapi_response_cb callback, void* user_data);
731 * @brief This function is used to set the short message service header parameters which are
732 * used in the origination of MO messages. Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
734 * @par Sync (or) Async:
735 * This is an Asynchronous API.
737 * @par Important Notes:
738 * - This API updates/sets SMS Parameters in EFsmsp file in the SIM storage
745 * - handle from tel_init()
747 * @param [in] pSmsSetParameters
748 * - Contains SMS header Parameter information like service center address, destination address, validity period, protocol identifier,
749 * data coding scheme.
751 * @param [in] callback
752 * - To register callback function for result of this function.
754 * @param [in] user_data
755 * - user data for user specification
757 * @par Async Response Message:
758 * Asynchronous return status is indicated by #TelSmsResponse_t
766 * @return Return Type (int) \n
767 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
768 * - Else it will return failure and error code (Refer #TapiResult_t)
769 * @par Prospective Clients:
773 * #include <ITapiNetText.h>
775 * int ret_status = TAPI_API_SUCCESS;
776 * TapiHandle *handle;//Obtained from tel_init();
777 * tapi_response_cb callback;
780 * TelSmsParams_t SmsSetParameters = {0,};//fill the structure appropriately
782 * SmsSetParameters.RecordIndex = 0x01;
783 * SmsSetParameters.RecordLen = 28;
784 * memcpy(SmsSetParameters.TpDestAddr.szDiallingNum, "9986529874", 10);
785 * printf("\ndial no is %s\n", SmsSetParameters.TpDestAddr.szDiallingNum);
786 * SmsSetParameters.TpDestAddr.DialNumLen = 10;
787 * SmsSetParameters.TpDestAddr.Ton = TAPI_SIM_TON_NATIONAL;//national no
788 * SmsSetParameters.TpDestAddr.Npi = TAPI_SIM_NPI_NATIONAL;
790 * ret_status = tel_set_sms_parameters(handle, pSmsSetParameters, callback, user_data);
802 /*================================================================================================*/
803 int tel_set_sms_parameters(TapiHandle *handle, const TelSmsParams_t *pSmsSetParameters, tapi_response_cb callback, void* user_data);
806 * @brief This function is used to send a deliver report for the received incoming SMS to the network.
807 * Access to this API is limited to in-house application.
809 * @par Sync (or) Async:
810 * This is an Asynchronous API.
812 * @par Important Notes:
820 * - handle from tel_init()
822 * @param [in] pDataPackage
823 * - Contains SMS Data package..
825 * @param [in] RPCause
826 * - Indicates the reason for SMS-DELIVER failure
828 * @param [in] callback
829 * - To register callback function for result of this function.
831 * @param [in] user_data
832 * - user data for user specification
834 * @par Async Response Message:
835 * Asynchronous return status is indicated by #TelSmsResponse_t
838 * - SMS-DELIVER-REPORT message structure should be in TPDU format as specified by 3GPP TS 23.040 SMS TPDU.
843 * @return Return Type (int) \n
844 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
845 * - Else it will return failure and error code (Refer #TapiResult_t)
846 * @par Prospective Clients:
850 * #include <ITapiNetText.h>
852 * int ret_status = 0;
853 * Int requestId = -1;
854 * TelSmsResponse_t RPCause;
855 * TelSmsDatapackageInfo_t *del_report = NULL;
857 * del_report = (TelSmsDatapackageInfo_t *)malloc(sizeof(TelSmsDatapackageInfo_t));
858 * memset(del_report, 0, sizeof(TelSmsDatapackageInfo_t));
859 * TelSmsDatapackageInfo_t //fill the structure appropriately
860 * //Encode Send Delivery Report here
861 * //EncodeSmsDeliveryReportTpdu();
862 * Sca parameter is optional. If you don't provide Service center address, you should fill "00" in sca array.
863 * MsgLength is length of szData
864 * fill the szData in TelSmsDatapackageInfo_t .
866 * RPCause = TAPI_NETTEXT_SENDSMS_SUCCESS;
867 * printf("***receive message (Api:SendDeliverreport)****\n");
869 * ret_status = tel_send_sms_deliver_report(handle, pDataPackage, RPCause, callback, user_data);
881 /*================================================================================================*/
882 int tel_send_sms_deliver_report(TapiHandle *handle, const TelSmsDatapackageInfo_t *pDataPackage, TelSmsResponse_t RPCause, tapi_response_cb callback, void* user_data);
885 * @brief This function is used to set SMS Service Centre Address information in order to send the SMS.
886 * Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
888 * @par Sync (or) Async:
889 * This is an Asynchronous API.
891 * @par Important Notes:
892 * - This API updates/sets service center address in EFsmsp file in the SIM storage.
898 * - handle from tel_init()
901 * - Contains the service centre address informations.
904 * - Contains the record index of the Service center address information in the EF.
906 * @param [in] callback
907 * - To register callback function for result of this function.
909 * @param [in] user_data
910 * - user data for user specification
912 * @par Async Response Message:
913 * Asynchronous return status is indicated by #TelSmsResponse_t.
921 * @return Return Type (int) \n
922 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
923 * - Else it will return failure and error code (Refer #TapiResult_t).
924 * @par Prospective Clients:
928 * #include <ITapiNetText.h>
931 * TapiHandle *handle;//Obtained from tel_init();
932 * tapi_response_cb callback;
936 * TelSmsAddressInfo_t *sc_addr = NULL;
939 * printf("***Setting the SCA(Api:SetSCA)****\n");
940 * sca = (TelSmsAddressInfo_t *)malloc(sizeof(TelSmsAddressInfo_t));
941 * TelSmsAddressInfo_t // fill the structure appropriately
942 * memset(sca, 0, sizeof(sca));
943 * sca.DialNumLen = 0x5;
944 * sca.Npi = TAPI_SIM_NPI_ISDN_TEL;
945 * sca.Ton = TAPI_SIM_TON_INTERNATIONAL;
946 * sca.szDiallingNum[0] = 0x28;
947 * sca.szDiallingNum[1] = 0x01;
948 * sca.szDiallingNum[2] = 0x19;
949 * sca.szDiallingNum[3] = 0x11;
950 * sca.szDiallingNum[4] = 0x11;
952 * ret_status = tel_set_sms_sca(handle, pSCA, index, callback, user_data);
964 /*================================================================================================*/
965 int tel_set_sms_sca(TapiHandle *handle, const TelSmsAddressInfo_t *pSCA, int index, tapi_response_cb callback, void* user_data);
968 * @brief This function is used to get current SMS Service Centre Address information.
969 * Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
971 * @par Sync (or) Async:
972 * This is an Asynchronous API.
974 * @par Important Notes:
982 * - handle from tel_init()
985 * - Contains the record index of the Service center address information in the SIM EF.
987 * @param [in] callback
988 * - To register callback function for result of this function.
990 * @param [in] user_data
991 * - user data for user specification
993 * @par Async Response Message:
994 * Asynchronous return status is indicated by #TelSmsResponse_t.
1002 * @return Return Type (int) \n
1003 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
1004 * - Else it will return failure and error code (Refer #TapiResult_t)
1005 * @par Prospective Clients:
1009 * #include <ITapiNetText.h>
1011 * int ret_status = TAPI_API_SUCCESS;
1012 * TapiHandle *handle;//Obtained from tel_init();
1013 * tapi_response_cb callback;
1017 * ret_status = tel_get_sms_sca(handle, index, callback, user_data);
1029 /*================================================================================================*/
1030 int tel_get_sms_sca(TapiHandle *handle, int index, tapi_response_cb callback, void* user_data);
1033 * @brief This function is used by the applications to inform modem about the memory status of PDA (whether FULL or AVAILABLE) so that modem can inform network .
1034 * Access to this API is limited to in-house application.
1036 * @par Sync (or) Async:
1037 * This is an Asynchronous API.
1039 * @par Important Notes:
1046 * @param [in] handle
1047 * - handle from tel_init()
1049 * @param [in] memoryStatus
1050 * - Contains Memory Status
1052 * @param [in] callback
1053 * - To register callback function for result of this function.
1055 * @param [in] user_data
1056 * - user data for user specification
1058 * @par Async Response Message:
1059 * Asynchronous return status is indicated by #TelSmsResponse_t
1067 * @return Return Type (int) \n
1068 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
1069 * - Else it will return failure and error code (Refer #TapiResult_t)
1070 * @par Prospective Clients:
1074 * #include <ITapiNetText.h>
1076 * int ret_status = TAPI_API_SUCCESS;
1077 * TapiHandle *handle;//Obtained from tel_init();
1078 * tapi_response_cb callback;
1080 * int MemoryStatus = TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE;
1082 * ret_status = tel_set_sms_memory_status(handle, memoryStatus, callback, user_data);
1094 /*================================================================================================*/
1095 int tel_set_sms_memory_status(TapiHandle *handle, int memoryStatus, tapi_response_cb callback, void* user_data);
1098 * @brief This function is used by the applications to set the message status in the SIM EF.
1099 * Access to this API is limited to in-house application and we recommend you use Message Framework API(MAPI).
1101 * @par Sync (or) Async:
1102 * This is an Asynchronous API.
1104 * @par Important Notes:
1111 * @param [in] handle
1112 * - handle from tel_init()
1115 * - Index of the message whose status has to be set.
1117 * @param [in] msgStatus
1118 * - Status of the message to be set.
1120 * @param [in] callback
1121 * - To register callback function for result of this function.
1123 * @param [in] user_data
1124 * - user data for user specification
1126 * @par Async Response Message:
1127 * Asynchronous return status is indicated by #TelSmsResponse_t
1135 * @return Return Type (int) \n
1136 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
1137 * - Else it will return failure and error code (Refer #TapiResult_t)
1138 * @par Prospective Clients:
1142 * #include <ITapiNetText.h>
1144 * int ret_status = TAPI_API_SUCCESS;
1145 * TapiHandle *handle;//Obtained from tel_init();
1146 * tapi_response_cb callback;
1149 * int MemoryStatus = TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE;
1151 * ret_status = tel_set_sms_message_status(handle, index, msgStatus, callback, user_data);
1163 /*================================================================================================*/
1164 int tel_set_sms_message_status(TapiHandle *handle, int index, TelSmsMsgStatus_t msgStatus, tapi_response_cb callback, void* user_data);
1167 * @brief This function is used by the applications to get the count of SMS parameter records stored in SIM EF.
1168 * Access to this API is limited to in-house application.
1170 * @par Sync (or) Async:
1171 * This is an Asynchronous API.
1173 * @par Important Notes:
1180 * @param [in] handle
1181 * - handle from tel_init()
1183 * @param [in] callback
1184 * - To register callback function for result of this function.
1186 * @param [in] user_data
1187 * - user data for user specification
1189 * @par Async Response Message:
1190 * Asynchronous return status is indicated by #TelSmsResponse_t
1198 * @return Return Type (int) \n
1199 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
1200 * - Else it will return failure and error code (Refer #TapiResult_t)
1201 * @par Prospective Clients:
1205 * #include <ITapiNetText.h>
1207 * int ret_status = TAPI_API_SUCCESS;
1208 * TapiHandle *handle;//Obtained from tel_init();
1209 * tapi_response_cb callback;
1212 * ret_status = tel_get_sms_parameter_count(handle, callback, user_data);
1223 /*================================================================================================*/
1224 int tel_get_sms_parameter_count(TapiHandle *handle, tapi_response_cb callback, void* user_data);
1228 * @brief This function is used by the applications to check the sms ready status (whether ready or not) .
1230 * @par Sync (or) Async:
1231 * This is a Synchronous API.
1233 * @par Important Notes:
1240 * @param [in] handle
1241 * - handle from tel_init()
1243 * @param [out] pReadyStatus
1244 * - Contains Ready Status
1246 * @par Async Response Message:
1255 * @return Return Type (int) \n
1256 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
1257 * - Else it will return failure and error code (Refer #TapiResult_t)
1258 * @par Prospective Clients:
1262 int tel_check_sms_device_status(TapiHandle *handle, int *pReadyStatus);
1265 * @brief This function is used by the applications to inform modem about the PDA status(whether PDA is ready to
1266 * recieve messages from network or not).
1269 * @par Sync (or) Async:
1270 * This is an Asynchronous API.
1272 * @par Important Notes:
1285 * @par Async Response Message:
1294 * @return Return Type (int) \n
1295 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
1296 * - Else it will return failure and error code (Refer #TapiResult_t)
1297 * @par Prospective Clients:
1301 int tel_set_sms_device_status(void);
1307 #endif /* _ITAPI_NETTEXT_H_ */