/*****************************************************************************
** al_rating.h: AL Layer Parent Control Header File
**
** Description: Gives the functionalities for manipulating
**				the parental control data related to certail service.
**
** Copyright(c) 2011 Sunmedia Technologies - All Rights Reserved
**
** Author : anlzhao
**
** $Id: al_rating.h 1916 2011-01-24 09:55:40Z anlzhao_c1 $
*****************************************************************************/

#ifndef __AL_RATING_H__
#define __AL_RATING_H__

#include "al_basictypes.h"

/*
** Marco define
*/

#ifdef __cplusplus
	extern "C"{
#endif

/* Parent control details */
typedef struct {
	al_uint32 pc_val; /* Rating value */
	/* Determined whether the unrated service is blocked or not */
	al_uint8 pc_un_rat;
	al_uint8 pc_enable; /* Enable or Disable for parent control */
	al_uint8 region; /* Region list(not used now) */
} AL_PC_Details_t;

/***************************************************************************
** FUNCTION : AL_PC_SetParentalDetails
**
** DESCRIPTION :
**				API set parental controls.
**				Notice : When parental control setting change, the caller
**				Must call this function to set parental control value.
**
** PARAMETERS :
**				pc_details	- Pointer to AL_PC_Details_t
**
** RETURN VALUES : AL_Return_t
***************************************************************************/
AL_Return_t AL_PC_SetParentalDetails(AL_PC_Details_t *pc_details);

/***************************************************************************
** FUNCTION : AL_PC_CheckEventRating
**
** DESCRIPTION :
**				Checks the Rating of Given event with User set.
**
** PARAMETERS :
**				events_detail	- Pointer to event
**
** RETURN VALUES : AL_Return_t
***************************************************************************/
AL_Return_t AL_PC_CheckEventRating(AL_Event_Details_t *events_detail);

/***************************************************************************
** FUNCTION : AL_PC_CheckServiceRating
**
** DESCRIPTION :
**				Checks the Rating of service with User set.
**				Notice:Currently this API is not implemented, and always
**				return AL_SUCCESS.
**
** PARAMETERS :
**				serv_detail	- Pointer to service info
**
** RETURN VALUES : AL_Return_t
***************************************************************************/
AL_Return_t AL_PC_CheckServiceRating(AL_ServiceDetail_t *serv_detail);


#ifdef __cplusplus
	}
#endif /* __cplusplus */

#endif /* __AL_RATING_H__ */

/*****************************************************************************
** $Rev: 1916 $
**
*****************************************************************************/
