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 overhead196 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------206 * Connect the current client thread to the service providing this API. Block until the service is209 * For each thread that wants to use this API, either ConnectService or TryConnectService must be210 * called before any other functions in this API. Normally, ConnectService is automatically called215 //--------------------------------------------------------------------------------------------------221 //--------------------------------------------------------------------------------------------------224 * Try to connect the current client thread to the service providing this API. Return with an error227 * For each thread that wants to use this API, either ConnectService or TryConnectService must be228 * called before any other functions in this API. Normally, ConnectService is automatically called237 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).240 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------250 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants253 //--------------------------------------------------------------------------------------------------260 //--------------------------------------------------------------------------------------------------266 * longer a connection to the service, and the functions in this API can't be used. For details, see271 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------282 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------293 //--------------------------------------------------------------------------------------------------297 //--------------------------------------------------------------------------------------------------300 //--------------------------------------------------------------------------------------------------307 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------318 //--------------------------------------------------------------------------------------------------325 //--------------------------------------------------------------------------------------------------332 //--------------------------------------------------------------------------------------------------341 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------352 //--------------------------------------------------------------------------------------------------358 //--------------------------------------------------------------------------------------------------365 //--------------------------------------------------------------------------------------------------377 //--------------------------------------------------------------------------------------------------388 //--------------------------------------------------------------------------------------------------399 //--------------------------------------------------------------------------------------------------406 //--------------------------------------------------------------------------------------------------415 //--------------------------------------------------------------------------------------------------426 //--------------------------------------------------------------------------------------------------436 //--------------------------------------------------------------------------------------------------450 //--------------------------------------------------------------------------------------------------457 //--------------------------------------------------------------------------------------------------464 //--------------------------------------------------------------------------------------------------475 //--------------------------------------------------------------------------------------------------486 //--------------------------------------------------------------------------------------------------497 //--------------------------------------------------------------------------------------------------508 //--------------------------------------------------------------------------------------------------521 //--------------------------------------------------------------------------------------------------532 //--------------------------------------------------------------------------------------------------540 //--------------------------------------------------------------------------------------------------547 //--------------------------------------------------------------------------------------------------555 //--------------------------------------------------------------------------------------------------562 //--------------------------------------------------------------------------------------------------564 * allow to know whether the message has been read or not. The message status is tied to the client569 * @note If the caller is passing a bad message reference into this function, it is a fatal error,572 //--------------------------------------------------------------------------------------------------579 //--------------------------------------------------------------------------------------------------583 * @note If the caller is passing a bad message reference into this function, it is a fatal error,586 //--------------------------------------------------------------------------------------------------593 //--------------------------------------------------------------------------------------------------597 * @note If the caller is passing a bad message reference into this function, it is a fatal error,600 //--------------------------------------------------------------------------------------------------607 //--------------------------------------------------------------------------------------------------617 //--------------------------------------------------------------------------------------------------624 //--------------------------------------------------------------------------------------------------633 //--------------------------------------------------------------------------------------------------le_smsInbox1_SessionRef_t le_smsInbox1_Open(void)le_result_t le_smsInbox1_GetTimeStamp(uint32_t msgId, char *timestamp, size_t timestampSize)void le_smsInbox1_DeleteMsg(uint32_t msgId)void(* le_smsInbox1_DisconnectHandler_t)(void *)Definition: le_smsInbox1_interface.h:201le_result_t le_smsInbox1_GetImsi(uint32_t msgId, char *imsi, size_t imsiSize)void le_smsInbox1_MarkRead(uint32_t msgId)le_result_t le_smsInbox1_GetMaxMessages(uint32_t *maxMessageCountPtrPtr)le_result_t le_smsInbox1_SetMaxMessages(uint32_t maxMessageCount)le_result_t le_smsInbox1_GetBinary(uint32_t msgId, uint8_t *binPtr, size_t *binSizePtr)void le_smsInbox1_MarkUnread(uint32_t msgId)le_result_t le_smsInbox1_GetSenderTel(uint32_t msgId, char *tel, size_t telSize)le_sms_Format_t le_smsInbox1_GetFormat(uint32_t msgId)le_result_t le_smsInbox1_TryConnectService(void)size_t le_smsInbox1_GetMsgLen(uint32_t msgId)le_result_t le_smsInbox1_GetText(uint32_t msgId, char *text, size_t textSize)uint32_t le_smsInbox1_GetNext(le_smsInbox1_SessionRef_t sessionRef)void le_smsInbox1_RemoveRxMessageHandler(le_smsInbox1_RxMessageHandlerRef_t handlerRef)le_smsInbox1_RxMessageHandlerRef_t le_smsInbox1_AddRxMessageHandler(le_smsInbox1_RxMessageHandlerFunc_t handlerPtr, void *contextPtr)LE_FULL_API void le_smsInbox1_SetServerDisconnectHandler(le_smsInbox1_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_smsInbox1_DisconnectService(void)le_result_t le_smsInbox1_GetPdu(uint32_t msgId, uint8_t *pduPtr, size_t *pduSizePtr)uint32_t le_smsInbox1_GetFirst(le_smsInbox1_SessionRef_t sessionRef)bool le_smsInbox1_IsUnread(uint32_t msgId)void le_smsInbox1_Close(le_smsInbox1_SessionRef_t sessionRef)void le_smsInbox1_ConnectService(void)