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 overhead195 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------202 //--------------------------------------------------------------------------------------------------205 * Connect the current client thread to the service providing this API. Block until the service is208 * For each thread that wants to use this API, either ConnectService or TryConnectService must be209 * called before any other functions in this API. Normally, ConnectService is automatically called214 //--------------------------------------------------------------------------------------------------220 //--------------------------------------------------------------------------------------------------223 * Try to connect the current client thread to the service providing this API. Return with an error226 * For each thread that wants to use this API, either ConnectService or TryConnectService must be227 * called before any other functions in this API. Normally, ConnectService is automatically called236 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).239 //--------------------------------------------------------------------------------------------------245 //--------------------------------------------------------------------------------------------------249 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants252 //--------------------------------------------------------------------------------------------------259 //--------------------------------------------------------------------------------------------------265 * longer a connection to the service, and the functions in this API can't be used. For details, see270 //--------------------------------------------------------------------------------------------------277 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------284 //--------------------------------------------------------------------------------------------------288 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------295 //--------------------------------------------------------------------------------------------------299 //--------------------------------------------------------------------------------------------------303 //--------------------------------------------------------------------------------------------------307 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------314 (321 //--------------------------------------------------------------------------------------------------328 //--------------------------------------------------------------------------------------------------334 //--------------------------------------------------------------------------------------------------339 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------353 //--------------------------------------------------------------------------------------------------362 //--------------------------------------------------------------------------------------------------366 //--------------------------------------------------------------------------------------------------373 //--------------------------------------------------------------------------------------------------379 //--------------------------------------------------------------------------------------------------386 //--------------------------------------------------------------------------------------------------398 //--------------------------------------------------------------------------------------------------409 //--------------------------------------------------------------------------------------------------420 //--------------------------------------------------------------------------------------------------427 //--------------------------------------------------------------------------------------------------436 //--------------------------------------------------------------------------------------------------447 //--------------------------------------------------------------------------------------------------457 //--------------------------------------------------------------------------------------------------471 //--------------------------------------------------------------------------------------------------478 //--------------------------------------------------------------------------------------------------485 //--------------------------------------------------------------------------------------------------496 //--------------------------------------------------------------------------------------------------507 //--------------------------------------------------------------------------------------------------518 //--------------------------------------------------------------------------------------------------529 //--------------------------------------------------------------------------------------------------542 //--------------------------------------------------------------------------------------------------553 //--------------------------------------------------------------------------------------------------561 //--------------------------------------------------------------------------------------------------568 //--------------------------------------------------------------------------------------------------576 //--------------------------------------------------------------------------------------------------583 //--------------------------------------------------------------------------------------------------585 * allow to know whether the message has been read or not. The message status is tied to the client590 * @note If the caller is passing a bad message reference into this function, it is a fatal error,593 //--------------------------------------------------------------------------------------------------600 //--------------------------------------------------------------------------------------------------604 * @note If the caller is passing a bad message reference into this function, it is a fatal error,607 //--------------------------------------------------------------------------------------------------614 //--------------------------------------------------------------------------------------------------618 * @note If the caller is passing a bad message reference into this function, it is a fatal error,621 //--------------------------------------------------------------------------------------------------628 //--------------------------------------------------------------------------------------------------638 //--------------------------------------------------------------------------------------------------645 //--------------------------------------------------------------------------------------------------654 //--------------------------------------------------------------------------------------------------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:200le_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)void le_smsInbox1_SetServerDisconnectHandler(le_smsInbox1_DisconnectHandler_t disconnectHandler, void *contextPtr)le_sms_Format_t le_smsInbox1_GetFormat(uint32_t msgId)le_result_t le_smsInbox1_TryConnectService(void)struct le_smsInbox1_RxMessageHandler * le_smsInbox1_RxMessageHandlerRef_tDefinition: le_smsInbox1_interface.h:304size_t le_smsInbox1_GetMsgLen(uint32_t msgId)struct le_smsInbox1_Session * le_smsInbox1_SessionRef_tDefinition: le_smsInbox1_interface.h:296le_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)void(* le_smsInbox1_RxMessageHandlerFunc_t)(uint32_t msgId, void *contextPtr)Definition: le_smsInbox1_interface.h:314void 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)