kb_machblue_client_lc.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:4k
- //*****************************************************************************
- //File Name: kb_machblue_client_lc.h
- //
- //Description: some function about local connection
- //
- //Author: wisco
- //
- //Date: 2007.03.08
- //
- //Version: v1.0
- //******************************************************************************
- #ifndef KB_MACHBLUE_CLIENT_LC_H
- #define KB_MACHBLUE_CLIENT_LC_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "gendef.h"
- #include "machblue_defines.h"
- #include "db.h"
- //type of epg
- typedef enum
- {
- tv_epg,
- radio_epg,
- adm_epg_write,
- adm_epg_read,
- radio_channel
- }kb_epg_type;
- //type of mail
- typedef enum
- {
- mail_list,
- mail_read,
- mail_delete
- }kb_mail_type;
- //type of system information
- typedef enum
- {
- channel_info,
- STB_info,
- loader_info,
- factory_reset,
- parent_set,
- audio_set,
- password_set,
- menu_set,
- power_on_off,
- ota_set
- }kb_sys_info_type;
- //type of audio set
- typedef enum
- {
- audio_set_r,
- audio_set_w
- }kb_audio_set_type;
- //type of menu set
- typedef enum
- {
- menu_set_r,
- menu_set_w
- }kb_menu_set_type;
- //type of search
- typedef enum
- {
- auto_search,
- manual_search,
- all_search,
- channel_edit,
- signal,
- progress
- }kb_search_type;
- //type of channel edit
- typedef enum
- {
- fav_edit,
- move_edit,
- delete_edit,
- lock_edit
- }kb_channel_edit_type;
- typedef enum
- {
- lc_movie_name,
- lc_movie_type,
- lc_movie_lcName,
- lc_movie_funName,
- lc_event_type,
- lc_data1,
- lc_data2,
- lc_data3,
- lc_data4,
- lc_data5,
- lc_data6,
- lc_data7,
- lc_data8,
- lc_data9,
- lc_last
- };
- typedef enum
- {
- KB_EPG_INIT_TO_MOVIE,
- KB_MAIL_2_MOVIE,
- KB_VOTERESULT_TO_MOVIE,
- KB_SEARCH_SIGNAL_TO_MOVIE,
- KB_AUTO_SEARCH_TO_MOVIE,
- KB_PGM_LIST_MOVIE,
- KB_PGM_LIST_MOVIE_R,
- KB_SOUND,
- KB_MENU_PF,
- KB_MENU_SEARCH_TYPE,
- KB_MENU_SYS_INFO,
- KB_NVOD_2_MOVIE,
- KB_MENU_CHANNEL_INFO
- }kb_machblue_lc_to_movie;
- typedef struct kb_lc_attributes_s
- {
- unsigned char *connection;
- unsigned char *function;
- mb_param_t parameters[lc_last];
- } kb_lc_attributes_t;
- typedef struct kb_movie_lc_s
- {
- unsigned char data[20];
- unsigned char index;
- BOOL used;
- }kb_movie_lc_t;
- #define KB_LC_PARA_INDEX_0 "0"
- #define KB_LC_PARA_INDEX_1 "1"
- #define KB_LC_PARA_INDEX_2 "2"
- #define KB_LC_PARA_INDEX_3 "3"
- #define KB_LC_PARA_INDEX_4 "4"
- #define KB_LC_PARA_INDEX_5 "5"
- #define KB_LC_PARA_INDEX_6 "6"
- #define KB_LC_PARA_INDEX_7 "7"
- #define KB_LC_PARA_INDEX_8 "8"
- #define KB_LC_PARA_INDEX_9 "9"
- #define KB_LC_PARA_INDEX_10 "10"
- #define KB_LC_PARA_INDEX_11 "11"
- #define KB_LC_PARA_INDEX_12 "12"
- #define KB_LC_PARA_INDEX_13 "13"
- #define KB_LC_PARA_INDEX_14 "14"
- #define KB_LC_PARA_INDEX_15 "15"
- #define KB_LC_PARA_INDEX_16 "16"
- #define KB_LC_PARA_INDEX_17 "17"
- #define KB_LC_PARA_INIT_0 "0"
- #define KB_LC_PARA_INIT_1 "1"
- #define KB_LC_PARA_INIT_2 "2"
- #define KB_LC_PARA_INIT_3 "3"
- /**
- * init local connection data
- *
- * @return none
- */
- extern void kb_machblue_lc_init(void);
- /**
- * send current time to epg menu.
- * @return None.
- */
- extern void kb_machblue_lc_epgTime(mb_movie_t *pMovie);
- /**
- * local connection manager
- * @return None.
- */
- extern void kb_machblue_localConnection(kb_lc_attributes_t *attribs);
- extern void KB_MB_lc_2_movie_word_Post_Task(UINT32 word);
- extern void kb_machblue_lc_2_prompt(char* promt);
- extern void KB_Machblue_LC_To_Movie(long word);
- //add by shriek
- extern void KB_OTA_Set(int sys_info, kb_lc_attributes_t *pAttribs);
- extern int KB_Flash_lc_MSGBox(char *str) ;
- extern void kb_machblue_lc_F_otahint(kb_lc_attributes_t *pAttribs) ;
- //shriek end
- extern void kb_machblue_lc_menu_noRadioList(KB_DBPRGType type);
- #ifdef __cplusplus
- }
- #endif
- #endif