All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_sms_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
272 #ifndef LE_SMS_H_INCLUDE_GUARD
273 #define LE_SMS_H_INCLUDE_GUARD
274 
275 
276 #include "legato.h"
277 
278 //--------------------------------------------------------------------------------------------------
282 //--------------------------------------------------------------------------------------------------
284 (
285  const char* serviceInstanceName
287 );
288 
289 //--------------------------------------------------------------------------------------------------
293 //--------------------------------------------------------------------------------------------------
295 (
296  void
297 );
298 
299 
300 //--------------------------------------------------------------------------------------------------
306 //--------------------------------------------------------------------------------------------------
307 #define LE_SMS_TIMESTAMP_MAX_LEN 21
308 
309 
310 //--------------------------------------------------------------------------------------------------
315 //--------------------------------------------------------------------------------------------------
316 #define LE_SMS_TEXT_MAX_LEN 161
317 
318 
319 //--------------------------------------------------------------------------------------------------
324 //--------------------------------------------------------------------------------------------------
325 #define LE_SMS_BINARY_MAX_LEN 140
326 
327 
328 //--------------------------------------------------------------------------------------------------
333 //--------------------------------------------------------------------------------------------------
334 #define LE_SMS_PDU_MAX_PAYLOAD 140
335 
336 
337 //--------------------------------------------------------------------------------------------------
342 //--------------------------------------------------------------------------------------------------
343 #define LE_SMS_PDU_MAX_LEN 176
344 
345 
346 //--------------------------------------------------------------------------------------------------
351 //--------------------------------------------------------------------------------------------------
352 typedef enum
353 {
356 
359 
362 
365 }
367 
368 
369 //--------------------------------------------------------------------------------------------------
374 //--------------------------------------------------------------------------------------------------
375 typedef enum
376 {
379 
382 
385 
388 
391 
394 
397 }
399 
400 
401 //--------------------------------------------------------------------------------------------------
405 //--------------------------------------------------------------------------------------------------
406 typedef struct le_sms_Msg* le_sms_MsgRef_t;
407 
408 
409 //--------------------------------------------------------------------------------------------------
413 //--------------------------------------------------------------------------------------------------
414 typedef struct le_sms_MsgList* le_sms_MsgListRef_t;
415 
416 
417 //--------------------------------------------------------------------------------------------------
421 //--------------------------------------------------------------------------------------------------
422 typedef struct le_sms_RxMessageHandler* le_sms_RxMessageHandlerRef_t;
423 
424 
425 //--------------------------------------------------------------------------------------------------
434 //--------------------------------------------------------------------------------------------------
435 typedef void (*le_sms_RxMessageHandlerFunc_t)
436 (
437  le_sms_MsgRef_t msgRef,
438  void* contextPtr
439 );
440 
441 //--------------------------------------------------------------------------------------------------
445 //--------------------------------------------------------------------------------------------------
447 (
450 
451  void* contextPtr
453 );
454 
455 //--------------------------------------------------------------------------------------------------
459 //--------------------------------------------------------------------------------------------------
461 (
462  le_sms_RxMessageHandlerRef_t addHandlerRef
464 );
465 
466 //--------------------------------------------------------------------------------------------------
476 //--------------------------------------------------------------------------------------------------
478 (
479  void
480 );
481 
482 //--------------------------------------------------------------------------------------------------
499 //--------------------------------------------------------------------------------------------------
501 (
502  le_sms_MsgRef_t msgRef,
505 
506  const char* dest
509 );
510 
511 //--------------------------------------------------------------------------------------------------
525 //--------------------------------------------------------------------------------------------------
527 (
528  le_sms_MsgRef_t msgRef,
531 
532  const char* text
535 );
536 
537 //--------------------------------------------------------------------------------------------------
551 //--------------------------------------------------------------------------------------------------
553 (
554  le_sms_MsgRef_t msgRef,
557 
558  const uint8_t* binPtr,
561 
562  size_t binNumElements
564 );
565 
566 //--------------------------------------------------------------------------------------------------
580 //--------------------------------------------------------------------------------------------------
582 (
583  le_sms_MsgRef_t msgRef,
586 
587  const uint8_t* pduPtr,
590 
591  size_t pduNumElements
593 );
594 
595 //--------------------------------------------------------------------------------------------------
610 //--------------------------------------------------------------------------------------------------
612 (
613  le_sms_MsgRef_t msgRef
616 );
617 
618 //--------------------------------------------------------------------------------------------------
630 //--------------------------------------------------------------------------------------------------
631 void le_sms_Delete
632 (
633  le_sms_MsgRef_t msgRef
636 );
637 
638 //--------------------------------------------------------------------------------------------------
647 //--------------------------------------------------------------------------------------------------
649 (
650  le_sms_MsgRef_t msgRef
653 );
654 
655 //--------------------------------------------------------------------------------------------------
670 //--------------------------------------------------------------------------------------------------
672 (
673  le_sms_MsgRef_t msgRef,
676 
677  char* tel,
680 
681  size_t telNumElements
683 );
684 
685 //--------------------------------------------------------------------------------------------------
700 //--------------------------------------------------------------------------------------------------
702 (
703  le_sms_MsgRef_t msgRef,
706 
707  char* timestamp,
712 
713  size_t timestampNumElements
715 );
716 
717 //--------------------------------------------------------------------------------------------------
727 //--------------------------------------------------------------------------------------------------
729 (
730  le_sms_MsgRef_t msgRef
733 );
734 
735 //--------------------------------------------------------------------------------------------------
749 //--------------------------------------------------------------------------------------------------
751 (
752  le_sms_MsgRef_t msgRef,
755 
756  char* text,
759 
760  size_t textNumElements
762 );
763 
764 //--------------------------------------------------------------------------------------------------
779 //--------------------------------------------------------------------------------------------------
781 (
782  le_sms_MsgRef_t msgRef,
785 
786  uint8_t* binPtr,
789 
790  size_t* binNumElementsPtr
792 );
793 
794 //--------------------------------------------------------------------------------------------------
809 //--------------------------------------------------------------------------------------------------
811 (
812  le_sms_MsgRef_t msgRef,
815 
816  uint8_t* pduPtr,
819 
820  size_t* pduNumElementsPtr
822 );
823 
824 //--------------------------------------------------------------------------------------------------
833 //--------------------------------------------------------------------------------------------------
834 size_t le_sms_GetPDULen
835 (
836  le_sms_MsgRef_t msgRef
839 );
840 
841 //--------------------------------------------------------------------------------------------------
856 //--------------------------------------------------------------------------------------------------
858 (
859  le_sms_MsgRef_t msgRef
862 );
863 
864 //--------------------------------------------------------------------------------------------------
872 //--------------------------------------------------------------------------------------------------
874 (
875  void
876 );
877 
878 //--------------------------------------------------------------------------------------------------
887 //--------------------------------------------------------------------------------------------------
889 (
890  le_sms_MsgListRef_t msgListRef
893 );
894 
895 //--------------------------------------------------------------------------------------------------
906 //--------------------------------------------------------------------------------------------------
908 (
909  le_sms_MsgListRef_t msgListRef
912 );
913 
914 //--------------------------------------------------------------------------------------------------
925 //--------------------------------------------------------------------------------------------------
927 (
928  le_sms_MsgListRef_t msgListRef
931 );
932 
933 //--------------------------------------------------------------------------------------------------
943 //--------------------------------------------------------------------------------------------------
945 (
946  le_sms_MsgRef_t msgRef
949 );
950 
951 //--------------------------------------------------------------------------------------------------
958 //--------------------------------------------------------------------------------------------------
959 void le_sms_MarkRead
960 (
961  le_sms_MsgRef_t msgRef
964 );
965 
966 //--------------------------------------------------------------------------------------------------
973 //--------------------------------------------------------------------------------------------------
975 (
976  le_sms_MsgRef_t msgRef
979 );
980 
981 
982 #endif // LE_SMS_H_INCLUDE_GUARD
983 
void le_sms_Delete(le_sms_MsgRef_t msgRef)
Unknown message status.
Definition: le_sms_interface.h:395
Message saved in the message storage has not been sent.
Definition: le_sms_interface.h:386
le_result_t
Definition: le_basics.h:34
struct le_sms_MsgList * le_sms_MsgListRef_t
Definition: le_sms_interface.h:414
struct le_sms_Msg * le_sms_MsgRef_t
Definition: le_sms_interface.h:406
void le_sms_MarkUnread(le_sms_MsgRef_t msgRef)
le_sms_MsgRef_t le_sms_Create(void)
void le_sms_StartClient(const char *serviceInstanceName)
le_result_t le_sms_GetTimeStamp(le_sms_MsgRef_t msgRef, char *timestamp, size_t timestampNumElements)
size_t le_sms_GetUserdataLen(le_sms_MsgRef_t msgRef)
void le_sms_RemoveRxMessageHandler(le_sms_RxMessageHandlerRef_t addHandlerRef)
Text message format.
Definition: le_sms_interface.h:357
le_sms_MsgRef_t le_sms_GetNext(le_sms_MsgListRef_t msgListRef)
le_sms_MsgListRef_t le_sms_CreateRxMsgList(void)
PDU message format.
Definition: le_sms_interface.h:354
le_sms_Format_t
Definition: le_sms_interface.h:352
le_sms_Status_t
Definition: le_sms_interface.h:375
le_result_t le_sms_GetBinary(le_sms_MsgRef_t msgRef, uint8_t *binPtr, size_t *binNumElementsPtr)
Message present in the message storage has not been read.
Definition: le_sms_interface.h:380
le_result_t le_sms_GetSenderTel(le_sms_MsgRef_t msgRef, char *tel, size_t telNumElements)
le_result_t le_sms_SetPDU(le_sms_MsgRef_t msgRef, const uint8_t *pduPtr, size_t pduNumElements)
le_result_t le_sms_DeleteFromStorage(le_sms_MsgRef_t msgRef)
le_sms_Status_t le_sms_GetStatus(le_sms_MsgRef_t msgRef)
le_result_t le_sms_GetPDU(le_sms_MsgRef_t msgRef, uint8_t *pduPtr, size_t *pduNumElementsPtr)
le_result_t le_sms_SetText(le_sms_MsgRef_t msgRef, const char *text)
size_t le_sms_GetPDULen(le_sms_MsgRef_t msgRef)
struct le_sms_RxMessageHandler * le_sms_RxMessageHandlerRef_t
Definition: le_sms_interface.h:422
le_sms_MsgRef_t le_sms_GetFirst(le_sms_MsgListRef_t msgListRef)
Unknown message format.
Definition: le_sms_interface.h:363
void(* le_sms_RxMessageHandlerFunc_t)(le_sms_MsgRef_t msgRef, void *contextPtr)
Definition: le_sms_interface.h:436
le_result_t le_sms_SetBinary(le_sms_MsgRef_t msgRef, const uint8_t *binPtr, size_t binNumElements)
Binary message format.
Definition: le_sms_interface.h:360
void le_sms_StopClient(void)
Message saved in the message storage has been sent.
Definition: le_sms_interface.h:383
Message has been sent.
Definition: le_sms_interface.h:389
le_result_t le_sms_SetDestination(le_sms_MsgRef_t msgRef, const char *dest)
le_sms_Format_t le_sms_GetFormat(le_sms_MsgRef_t msgRef)
Message has not been sent.
Definition: le_sms_interface.h:392
Message present in the message storage has been read.
Definition: le_sms_interface.h:377
le_result_t le_sms_Send(le_sms_MsgRef_t msgRef)
void le_sms_DeleteList(le_sms_MsgListRef_t msgListRef)
le_result_t le_sms_GetText(le_sms_MsgRef_t msgRef, char *text, size_t textNumElements)
le_sms_RxMessageHandlerRef_t le_sms_AddRxMessageHandler(le_sms_RxMessageHandlerFunc_t handlerPtr, void *contextPtr)
void le_sms_MarkRead(le_sms_MsgRef_t msgRef)