b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame] | 1 | #ifndef LYNQ_SMS_H
|
| 2 | #define LYNQ_SMS_H 1
|
| 3 | #ifdef __cplusplus
|
| 4 | extern "C" {
|
| 5 | #endif
|
| 6 |
|
| 7 | #define MIN_MSM_PARAM_NUM 4
|
| 8 | #define MIN_IMS_MSM_PARAM_NUM 6
|
| 9 | #define MIN_WRITE_MSM_PARAM_NUM 5
|
| 10 | #define MSG_MAX_LEN 1024
|
| 11 | #define TELEPHONE_NUM_LEN 64
|
| 12 | #define STORAGE_SMS_MAX_SIZE 128
|
| 13 | #define SMSC_MAX_LEN 22
|
| 14 | #define SMS_NUM_MAX 255
|
| 15 |
|
| 16 | int lynq_sms_init(int uToken);
|
| 17 | int lynq_sms_deinit(void);
|
| 18 | int lynq_send_sms(char telephony_num[TELEPHONE_NUM_LEN], int charset, char *msg, int msglen);
|
| 19 | int lynq_read_sms(int index,int *status,int *charset,char smsc[SMSC_MAX_LEN],int *smscLen,int *smslen,char message[MSG_MAX_LEN],char teleNum[TELEPHONE_NUM_LEN],int *numLen,int *current,int *total);
|
| 20 | int lynq_get_smsc_address(char service_num[SMSC_MAX_LEN]);
|
| 21 | int lynq_set_smsc_address(const char* service_num);
|
| 22 | int lynq_list_sms(char index_list[SMS_NUM_MAX]);
|
| 23 | int lynq_delete_sms(int index);
|
| 24 | int lynq_wait_receive_new_sms(int *handle);
|
| 25 | #ifdef __cplusplus
|
| 26 | }
|
| 27 | #endif
|
| 28 | #endif
|