le_smsInbox1_interface.h
Go to the documentation of this file.
33 * In fact, at device's startup or when a SIM is inserted, the SIM content is copied into the "Inbox34 * Message Storage" folder allocated in the root file system of the device. Then, the process frees40 * This process is the same when the SMS message storage is the device's storage area (ME - Mobile47 * (cf. @subpage le_smsInbox_configdb section). This way, the message box contents will be kept up67 * @note By default, smsInboxService starts manually. To start it automatically, the user can remove120 * le_smsInbox1_GetMsgLen(), le_smsInbox1_GetText(), le_smsInbox1_GetBinary(), le_smsInbox1_GetPdu().122 * To finish, you can also modify the received status of a message with le_smsInbox1_MarkRead() and133 * Use the API le_smsInbox1_Close() to close a message box (the message box is still exist and can be152 * The configuration database for the SMS Inbox Service is stored in the @c smsInboxService config167 * The application name is given by the API name provided into the Components.cdef, both must be the170 * @todo: Give an indication of memory consumption for 1 message, including the file system overhead200 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------210 * Connect the current client thread to the service providing this API. Block until the service is213 * For each thread that wants to use this API, either ConnectService or TryConnectService must be214 * called before any other functions in this API. Normally, ConnectService is automatically called219 //--------------------------------------------------------------------------------------------------225 //--------------------------------------------------------------------------------------------------228 * Try to connect the current client thread to the service providing this API. Return with an error231 * For each thread that wants to use this API, either ConnectService or TryConnectService must be232 * called before any other functions in this API. Normally, ConnectService is automatically called241 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).244 //--------------------------------------------------------------------------------------------------250 //--------------------------------------------------------------------------------------------------254 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants257 //--------------------------------------------------------------------------------------------------264 //--------------------------------------------------------------------------------------------------270 * longer a connection to the service, and the functions in this API can't be used. For details, see275 //--------------------------------------------------------------------------------------------------282 //--------------------------------------------------------------------------------------------------286 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------297 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------304 //--------------------------------------------------------------------------------------------------311 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------322 //--------------------------------------------------------------------------------------------------329 //--------------------------------------------------------------------------------------------------336 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------356 //--------------------------------------------------------------------------------------------------362 //--------------------------------------------------------------------------------------------------369 //--------------------------------------------------------------------------------------------------381 //--------------------------------------------------------------------------------------------------392 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------410 //--------------------------------------------------------------------------------------------------419 //--------------------------------------------------------------------------------------------------430 //--------------------------------------------------------------------------------------------------440 //--------------------------------------------------------------------------------------------------454 //--------------------------------------------------------------------------------------------------461 //--------------------------------------------------------------------------------------------------468 //--------------------------------------------------------------------------------------------------479 //--------------------------------------------------------------------------------------------------490 //--------------------------------------------------------------------------------------------------501 //--------------------------------------------------------------------------------------------------512 //--------------------------------------------------------------------------------------------------525 //--------------------------------------------------------------------------------------------------536 //--------------------------------------------------------------------------------------------------544 //--------------------------------------------------------------------------------------------------551 //--------------------------------------------------------------------------------------------------559 //--------------------------------------------------------------------------------------------------566 //--------------------------------------------------------------------------------------------------568 * allow to know whether the message has been read or not. The message status is tied to the client573 * @note If the caller is passing a bad message reference into this function, it is a fatal error,576 //--------------------------------------------------------------------------------------------------583 //--------------------------------------------------------------------------------------------------587 * @note If the caller is passing a bad message reference into this function, it is a fatal error,590 //--------------------------------------------------------------------------------------------------597 //--------------------------------------------------------------------------------------------------601 * @note If the caller is passing a bad message reference into this function, it is a fatal error,604 //--------------------------------------------------------------------------------------------------611 //--------------------------------------------------------------------------------------------------621 //--------------------------------------------------------------------------------------------------628 //--------------------------------------------------------------------------------------------------637 //--------------------------------------------------------------------------------------------------bool le_smsInbox1_IsUnread(uint32_t msgId)struct le_smsInbox1_Session * le_smsInbox1_SessionRef_tDefinition: le_smsInbox1_common.h:52void le_smsInbox1_MarkUnread(uint32_t msgId)struct le_smsInbox1_RxMessageHandler * le_smsInbox1_RxMessageHandlerRef_tDefinition: le_smsInbox1_common.h:60size_t le_smsInbox1_GetMsgLen(uint32_t msgId)uint32_t le_smsInbox1_GetNext(le_smsInbox1_SessionRef_t sessionRef)le_result_t le_smsInbox1_GetImsi(uint32_t msgId, char *imsi, size_t imsiSize)le_result_t le_smsInbox1_GetMaxMessages(uint32_t *maxMessageCountPtrPtr)le_result_t le_smsInbox1_SetMaxMessages(uint32_t maxMessageCount)void le_smsInbox1_DeleteMsg(uint32_t msgId)void(* le_smsInbox1_DisconnectHandler_t)(void *)Definition: le_smsInbox1_interface.h:205le_result_t le_smsInbox1_GetTimeStamp(uint32_t msgId, char *timestamp, size_t timestampSize)le_result_t le_smsInbox1_GetBinary(uint32_t msgId, uint8_t *binPtr, size_t *binSizePtr)le_smsInbox1_SessionRef_t le_smsInbox1_Open(void)uint32_t le_smsInbox1_GetFirst(le_smsInbox1_SessionRef_t sessionRef)le_result_t le_smsInbox1_GetSenderTel(uint32_t msgId, char *tel, size_t telSize)void le_smsInbox1_RemoveRxMessageHandler(le_smsInbox1_RxMessageHandlerRef_t handlerRef)void le_smsInbox1_DisconnectService(void)void le_smsInbox1_Close(le_smsInbox1_SessionRef_t sessionRef)le_smsInbox1_RxMessageHandlerRef_t le_smsInbox1_AddRxMessageHandler(le_smsInbox1_RxMessageHandlerFunc_t handlerPtr, void *contextPtr)le_result_t le_smsInbox1_GetPdu(uint32_t msgId, uint8_t *pduPtr, size_t *pduSizePtr)le_sms_Format_t le_smsInbox1_GetFormat(uint32_t msgId)LE_FULL_API void le_smsInbox1_SetServerDisconnectHandler(le_smsInbox1_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_smsInbox1_ConnectService(void)void le_smsInbox1_MarkRead(uint32_t msgId)le_result_t le_smsInbox1_GetText(uint32_t msgId, char *text, size_t textSize)void(* le_smsInbox1_RxMessageHandlerFunc_t)(uint32_t msgId, void *contextPtr)Definition: le_smsInbox1_common.h:70le_result_t le_smsInbox1_TryConnectService(void)