al_rating.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*****************************************************************************
  2. ** al_rating.h: AL Layer Parent Control Header File
  3. **
  4. ** Description: Gives the functionalities for manipulating
  5. ** the parental control data related to certail service.
  6. **
  7. ** Copyright(c) 2011 Sunmedia Technologies - All Rights Reserved
  8. **
  9. ** Author : anlzhao
  10. **
  11. ** $Id: al_rating.h 1916 2011-01-24 09:55:40Z anlzhao_c1 $
  12. *****************************************************************************/
  13. #ifndef __AL_RATING_H__
  14. #define __AL_RATING_H__
  15. #include "al_basictypes.h"
  16. /*
  17. ** Marco define
  18. */
  19. #ifdef __cplusplus
  20. extern "C"{
  21. #endif
  22. /* Parent control details */
  23. typedef struct {
  24. al_uint32 pc_val; /* Rating value */
  25. /* Determined whether the unrated service is blocked or not */
  26. al_uint8 pc_un_rat;
  27. al_uint8 pc_enable; /* Enable or Disable for parent control */
  28. al_uint8 region; /* Region list(not used now) */
  29. } AL_PC_Details_t;
  30. /***************************************************************************
  31. ** FUNCTION : AL_PC_SetParentalDetails
  32. **
  33. ** DESCRIPTION :
  34. ** API set parental controls.
  35. ** Notice : When parental control setting change, the caller
  36. ** Must call this function to set parental control value.
  37. **
  38. ** PARAMETERS :
  39. ** pc_details - Pointer to AL_PC_Details_t
  40. **
  41. ** RETURN VALUES : AL_Return_t
  42. ***************************************************************************/
  43. AL_Return_t AL_PC_SetParentalDetails(AL_PC_Details_t *pc_details);
  44. /***************************************************************************
  45. ** FUNCTION : AL_PC_CheckEventRating
  46. **
  47. ** DESCRIPTION :
  48. ** Checks the Rating of Given event with User set.
  49. **
  50. ** PARAMETERS :
  51. ** events_detail - Pointer to event
  52. **
  53. ** RETURN VALUES : AL_Return_t
  54. ***************************************************************************/
  55. AL_Return_t AL_PC_CheckEventRating(AL_Event_Details_t *events_detail);
  56. /***************************************************************************
  57. ** FUNCTION : AL_PC_CheckServiceRating
  58. **
  59. ** DESCRIPTION :
  60. ** Checks the Rating of service with User set.
  61. ** Notice:Currently this API is not implemented, and always
  62. ** return AL_SUCCESS.
  63. **
  64. ** PARAMETERS :
  65. ** serv_detail - Pointer to service info
  66. **
  67. ** RETURN VALUES : AL_Return_t
  68. ***************************************************************************/
  69. AL_Return_t AL_PC_CheckServiceRating(AL_ServiceDetail_t *serv_detail);
  70. #ifdef __cplusplus
  71. }
  72. #endif /* __cplusplus */
  73. #endif /* __AL_RATING_H__ */
  74. /*****************************************************************************
  75. ** $Rev: 1916 $
  76. **
  77. *****************************************************************************/