#include "legato.h"
#include "le_mdmDefs_interface.h"
#include "le_sim_interface.h"
#include "le_sms_interface.h"
Go to the source code of this file.
Macros | |
#define | LE_SMSINBOX1_FORMAT_UNKNOWN -1 |
#define | LE_SMSINBOX1_MAX_MBOX_NAME_LEN 12 |
Typedefs | |
typedef struct le_smsInbox1_Session * | le_smsInbox1_SessionRef_t |
typedef struct le_smsInbox1_RxMessageHandler * | le_smsInbox1_RxMessageHandlerRef_t |
typedef void(* | le_smsInbox1_RxMessageHandlerFunc_t) (uint32_t msgId, void *contextPtr) |
Legato SMS Inbox Service include file.
Copyright (C) Sierra Wireless Inc. Use of this work is subject to license.
#define LE_SMSINBOX1_FORMAT_UNKNOWN -1 |
Define unknown format
#define LE_SMSINBOX1_MAX_MBOX_NAME_LEN 12 |
Define the name of length of the message box name
typedef void(* le_smsInbox1_RxMessageHandlerFunc_t) (uint32_t msgId, void *contextPtr) |
Handler for New Message.
msgId | Message identifier. |
contextPtr |
typedef struct le_smsInbox1_RxMessageHandler* le_smsInbox1_RxMessageHandlerRef_t |
Reference type used by Add/Remove functions for EVENT 'le_smsInbox1_RxMessage'
typedef struct le_smsInbox1_Session* le_smsInbox1_SessionRef_t |
Reference type for referring to open message box sessions.
le_smsInbox1_RxMessageHandlerRef_t le_smsInbox1_AddRxMessageHandler | ( | le_smsInbox1_RxMessageHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
Add handler function for EVENT 'le_smsInbox1_RxMessage'
This event provides information on new received messages.
[in] | handlerPtr | |
[in] | contextPtr |
void le_smsInbox1_Close | ( | le_smsInbox1_SessionRef_t | sessionRef | ) |
Close a previously open message box.
[in] | sessionRef | Mailbox session reference. |
void le_smsInbox1_ConnectService | ( | void | ) |
Connect the client to the service
void le_smsInbox1_DeleteMsg | ( | uint32_t | msgId | ) |
Delete a Message.
[in] | msgId | Message identifier. |
void le_smsInbox1_DisconnectService | ( | void | ) |
Disconnect the client from the service
le_result_t le_smsInbox1_GetBinary | ( | uint32_t | msgId, |
uint8_t * | binPtr, | ||
size_t * | binNumElementsPtr | ||
) |
Get the binary Message.
[in] | msgId | Message identifier. |
[out] | binPtr | Binary message. |
[in,out] | binNumElementsPtr |
uint32_t le_smsInbox1_GetFirst | ( | le_smsInbox1_SessionRef_t | sessionRef | ) |
Get the first Message object reference in the inbox message.
[in] | sessionRef | Mailbox session reference. |
le_sms_Format_t le_smsInbox1_GetFormat | ( | uint32_t | msgId | ) |
Get the message format (text, binary or PDU).
[in] | msgId | Message identifier. |
le_result_t le_smsInbox1_GetImsi | ( | uint32_t | msgId, |
char * | imsi, | ||
size_t | imsiNumElements | ||
) |
Retrieves the IMSI of the message receiver SIM if it applies.
[in] | msgId | Message identifier. |
[out] | imsi | IMSI. |
[in] | imsiNumElements |
size_t le_smsInbox1_GetMsgLen | ( | uint32_t | msgId | ) |
Get the message Length value.
[in] | msgId | Message identifier. |
uint32_t le_smsInbox1_GetNext | ( | le_smsInbox1_SessionRef_t | sessionRef | ) |
Get the next Message object reference in the inbox message.
[in] | sessionRef | Mailbox session reference. |
le_result_t le_smsInbox1_GetPdu | ( | uint32_t | msgId, |
uint8_t * | pduPtr, | ||
size_t * | pduNumElementsPtr | ||
) |
Get the PDU message.
Output parameters are updated with the PDU message content and the length of the PDU message in bytes.
[in] | msgId | Message identifier. |
[out] | pduPtr | PDU message. |
[in,out] | pduNumElementsPtr |
le_result_t le_smsInbox1_GetSenderTel | ( | uint32_t | msgId, |
char * | tel, | ||
size_t | telNumElements | ||
) |
Get the Sender Identifier.
[in] | msgId | Message identifier. |
[out] | tel | Identifier string. |
[in] | telNumElements |
le_result_t le_smsInbox1_GetText | ( | uint32_t | msgId, |
char * | text, | ||
size_t | textNumElements | ||
) |
Get the text Message.
[in] | msgId | Message identifier. |
[out] | text | Message text. |
[in] | textNumElements |
le_result_t le_smsInbox1_GetTimeStamp | ( | uint32_t | msgId, |
char * | timestamp, | ||
size_t | timestampNumElements | ||
) |
Get the Message Time Stamp string (it does not apply for PDU message).
[in] | msgId | Message identifier. |
[out] | timestamp | Message time stamp (for text or binary messages). String format: "yy/MM/dd,hh:mm:ss+/-zz" (Year/Month/Day,Hour:Min:Seconds+/-TimeZone) |
[in] | timestampNumElements |
bool le_smsInbox1_IsUnread | ( | uint32_t | msgId | ) |
allow to know whether the message has been read or not. The message status is tied to the client app.
[in] | msgId | Message identifier. |
void le_smsInbox1_MarkRead | ( | uint32_t | msgId | ) |
Mark a message as 'read'.
[in] | msgId | Message identifier. |
void le_smsInbox1_MarkUnread | ( | uint32_t | msgId | ) |
Mark a message as 'unread'.
[in] | msgId | Message identifier. |
le_smsInbox1_SessionRef_t le_smsInbox1_Open | ( | void | ) |
Open a message box.
void le_smsInbox1_RemoveRxMessageHandler | ( | le_smsInbox1_RxMessageHandlerRef_t | addHandlerRef | ) |
Remove handler function for EVENT 'le_smsInbox1_RxMessage'
[in] | addHandlerRef |