| 1 | /**************************************************************************** |
|---|
| 2 | * NAME: App_Fnc_Rating.h |
|---|
| 3 | *---------------------------------------------------------------------------- |
|---|
| 4 | * Copyright (c) DIGITAL STREAM Technology Inc. |
|---|
| 5 | *---------------------------------------------------------------------------- |
|---|
| 6 | * CREATED_BY: Do Gon Lee |
|---|
| 7 | * CREATION_DATE: 2009/08/26 |
|---|
| 8 | * $Author: foxhunt $ |
|---|
| 9 | * $Revision: 1.0 $ |
|---|
| 10 | * $Date: 2009/08/26 09:12:22 $ |
|---|
| 11 | *---------------------------------------------------------------------------- |
|---|
| 12 | * PURPOSE: |
|---|
| 13 | * - App_Fnc_Rating.c header file |
|---|
| 14 | *****************************************************************************/ |
|---|
| 15 | |
|---|
| 16 | #ifndef _APP_RATING_H_ |
|---|
| 17 | #define _APP_RATING_H_ |
|---|
| 18 | |
|---|
| 19 | /*_____ I N C L U D E __________________________________________*/ |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | #if COMMENT |
|---|
| 26 | ____Overview____(){} |
|---|
| 27 | #endif |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | /*_____ D E F I N I T I O N ____________________________________*/ |
|---|
| 34 | |
|---|
| 35 | #if COMMENT |
|---|
| 36 | ____Config____(){} |
|---|
| 37 | #endif |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | #if COMMENT |
|---|
| 44 | ____Types____(){} |
|---|
| 45 | #endif |
|---|
| 46 | |
|---|
| 47 | typedef enum |
|---|
| 48 | { |
|---|
| 49 | eNEO_RATING_VCHIP_LOCK = TRUE |
|---|
| 50 | } NEO_RATING_PARAM; |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | #if COMMENT |
|---|
| 57 | ____Variables____(){} |
|---|
| 58 | #endif |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | #if COMMENT |
|---|
| 65 | ____NvParam____(){} |
|---|
| 66 | #endif |
|---|
| 67 | |
|---|
| 68 | #define NEO_NVPARAM_RATING_INITIALIZER { \ |
|---|
| 69 | eNEO_RATING_VCHIP_LOCK, \ |
|---|
| 70 | {'0','0','0','0'}, \ |
|---|
| 71 | {0x00, 0x00}, \ |
|---|
| 72 | 0x00, \ |
|---|
| 73 | 0x00, \ |
|---|
| 74 | 0x00, \ |
|---|
| 75 | 0x00, \ |
|---|
| 76 | 0x00 \ |
|---|
| 77 | } |
|---|
| 78 | |
|---|
| 79 | |
|---|
| 80 | |
|---|
| 81 | /*_____ F U N C T I O N ________________________________________*/ |
|---|
| 82 | |
|---|
| 83 | #if COMMENT |
|---|
| 84 | ____Function____(){} |
|---|
| 85 | #endif |
|---|
| 86 | |
|---|
| 87 | void AppRating_AVBlockOnOff(BOOL bOn); |
|---|
| 88 | |
|---|
| 89 | void AppRating_SetMasterBlock(BOOL bSet, BOOL bSaveNvRam); |
|---|
| 90 | BOOL AppRating_GetMasterBlock(void); |
|---|
| 91 | |
|---|
| 92 | BOOL RatingResetPassword(void); |
|---|
| 93 | BOOL AppRating_CheckIfPasswordMatch(UINT8 *pPasswd, BOOL bapply); |
|---|
| 94 | void AppRating_SetRatingPassword(UINT8 *pPasswd, BOOL bSaveNvRam); |
|---|
| 95 | |
|---|
| 96 | BOOL AppRating_IsBlockOn(void); |
|---|
| 97 | |
|---|
| 98 | UINT8 *AppRating_Get766Table(void); |
|---|
| 99 | void AppRating_Update766Table(UINT8 *d, BOOL bSaveNvRam); |
|---|
| 100 | |
|---|
| 101 | /* cafrii 070711 add */ |
|---|
| 102 | BOOL AppRating_GetR12RatingString(DMW_Rating5 *rating, char *str); |
|---|
| 103 | |
|---|
| 104 | BOOL AppRating_GetCurRatingStr(UINT16 *str, int strSize); |
|---|
| 105 | |
|---|
| 106 | BOOL AppRating_GetRatingInfo(DMW_Rating5 *pRating); |
|---|
| 107 | BOOL AppRating_GetRatingInfo_R5R1(char *strRating); /* iskang 070820 add */ |
|---|
| 108 | |
|---|
| 109 | UINT16 *AppRating_DoRatingBlock(void); |
|---|
| 110 | void AppRating_CheckRatingBlock(UINT32 nDelayMs); |
|---|
| 111 | void AppRating_CancelCheckRatingBlock(void); |
|---|
| 112 | |
|---|
| 113 | void AppRating_DrawBlockOSD(UINT16 *msg); |
|---|
| 114 | void AppRating_EraseBlockOSD(void); |
|---|
| 115 | |
|---|
| 116 | void AppRating_BlockForceOff(void); /* cafrii 060718 add */ |
|---|
| 117 | |
|---|
| 118 | void AppRating_NotifyOsdToken(BOOL bAvail); |
|---|
| 119 | |
|---|
| 120 | void AppRating_InitBlock(void); |
|---|
| 121 | |
|---|
| 122 | void AppRating_SetUserPinMatched(BOOL set_value); |
|---|
| 123 | BOOL AppRating_GetUserPinMatched(); |
|---|
| 124 | |
|---|
| 125 | void App_RatingParamInit(); |
|---|
| 126 | |
|---|
| 127 | |
|---|
| 128 | #endif /* _APP_RATING_H_ */ |
|---|