StbMoviesInfo.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:6k
- /* StbMoviesInfo.h: interface for the KB_MovieInfoNode class.*/
- #ifndef STBMOVIESINFO_H
- #define STBMOVIESINFO_H
- #include "Kb_dc_servcfgdata.h"
- #define KB_MOVIE_NAME_LEN 20
- //type of configure file
- typedef enum
- {
- CFG_MAIN = 0,
- CFG_WEATHER,
- CFG_GOVERNMENT,
- CFG_VOTE,
- CFG_MENU,
- CFG_ADVERTISE
- }kb_xml_servType_e;
- #if 0
- typedef struct _CStbMoviesInfo
- {
- CMovieBaseInfo m_baseInfo;
- unsigned short m_nPid;
- unsigned short m_nFirstModuleId;
-
- unsigned short m_nTsId;
- unsigned short m_nServiceId;
-
- struct _CStbMoviesInfo *m_pNext;
- }KB_MovieInfoNode;
- #endif
- //天气预报
- typedef enum _KB_DC_TYPE
- {
- MOVIE_INFO,
- WEATHER_INFO,
- BULLETIN_INFO,
- VOTE_INFO,
- SERVICE_INFO,
- DC_TYPE_MAX
- }KB_DC_TYPE;
- /*文件配置信息类型
- * kb_dc_adv_rt 实时广告影片信息
- * kb_dc_adv_alter 互动广告影片信息
- * kb_dc_ser_alter 交互业务影片信息
- * kb_dc_swf_update 界面更新影片信息
- * kb_dc_data 数据广播文件信息
- */
- typedef enum
- {
- kb_dc_adv_rt,
- kb_dc_adv_alter,
- kb_dc_ser_alter,
- kb_dc_swf_update,
- kb_dc_data_broadcast,
- kb_dc_data_vote,
- kb_dc_type_last
- }kb_dc_type_e;
- typedef enum
- {
- kb_dc_data_no,
- kb_dc_data_searching,
- kb_dc_data_searched,
- kb_dc_data_last
- }kb_dc_dataGet_e;
- //实现不同的业务需配置不同文件的信息
- //各文件信息公用该数据结构,但每个文件使用的有效字段各不相同
- typedef struct kb_movieInfo_s
- {
- kb_dc_type_e m_cfgType; //实时广告 互动广告 交互业务 界面更新 数据广播
- unsigned char m_type; //实时广告 互动广告 交互业务 界面更新
- unsigned char m_strName[20]; //实时广告 互动广告 交互业务 界面更新 数据广播
- unsigned long m_nSize; //实时广告 互动广告 交互业务 界面更新 数据广播
- unsigned long m_nStartTime; //实时广告 交互业务
- unsigned short m_nDuration; //实时广告 交互业务
- unsigned short m_tsID; //实时广告 交互业务
- unsigned short m_serviceID; //实时广告 交互业务
- unsigned short m_nPid; //实时广告 互动广告 交互业务 界面更新 数据广播
- unsigned short m_nFirstModuleId; //实时广告 互动广告 交互业务 界面更新 数据广播
- unsigned short m_nTimeStep; //实时广告 交互业务
- unsigned int m_nTimesPlayed; //实时广告 交互业务
- unsigned char m_dataGet; // 互动广告 数据广播
- unsigned char *m_pData; //实时广告 互动广告 交互业务 界面更新 数据广播
- unsigned char m_serial[20]; //实时广告 互动广告 交互业务
- unsigned char m_reserve1; //实时广告 互动广告 交互业务 界面更新 数据广播
- unsigned char m_reserve2; //实时广告 互动广告 交互业务 界面更新 数据广播
- unsigned char m_reserve3; //实时广告 互动广告 交互业务 界面更新 数据广播
- unsigned char m_reserve4; //实时广告 互动广告 交互业务 界面更新 数据广播
- }kb_movieInfo_t;
- typedef struct _MovieInfoNode
- {
- kb_movieInfo_t st_MovieInfo;
- struct _MovieInfoNode *m_pNext;
- }KB_MovieInfoNode;
- #if 0
- //天气预报
- typedef enum _kb_weather
- {
- fine,
- cloudy,
- rainSmall,
- rainMore,
- rainGreat,
- snowSmall,
- snowMore,
- snowGreat,
- fineCloudy,
- weatherLast
- }kb_weather;
- #endif
- typedef enum
- {
- fine=0,//晴
- cloudy,//多云
- overcast,//阴
- showerRain,//阵雨
- thundershower,//雷阵雨
- thundershowerHail,//雷阵雨并伴有冰雹
- sleet,//雨加雪
- flurryRain,//小雨
- mesneRain,//中雨
- heavyRain,//大雨
- rainstorm,//暴雨
- bigRainstorm,//大暴雨
- greatRainstorm,//特大暴雨
- showerSnow,//阵雪
- flurrySnow,//小雪
- mesneSnow,//中雪
- heavySnow,//大雪
- greatSnow,//暴雪
- brume,//雾
- iceRain,//冻雨
- heavySand,//沙尘暴
- flurryMesneRain,//小雨-中雨
- mesneHeavyRain,//中雨-大雨
- heavyRainstorm,//大雨-暴雨
- rainstormBigRainstorm,//暴雨-大暴雨
- bigRainstormGreatRainstorm,//大暴雨-特大暴雨
- flurrySnowMesneSnow,//小雪-中雪
- mesneSnowHeavySnow,//中雪-大雪
- heavySnowGreatSnow,//大雪-暴雪
- floatingDust,//浮尘
- floatingSand,//扬沙
- greatHeavySand,//强沙尘暴
- weatherLast
- }kb_weather;
- typedef struct kb_dayWeather_s
- {
- unsigned char date[15];
- kb_weather weather;
- unsigned char temperature[10];
- unsigned char weatherDes[25];
- }kb_dayWeather_t;
- typedef struct kb_dbWeather_s
- {
- unsigned char city[15];
- kb_dayWeather_t today;
- kb_dayWeather_t tomorrow;
- kb_dayWeather_t afTomorrow;
- }kb_dbWeather_t;
- typedef struct _WeatherInfoNode
- {
- kb_dbWeather_t st_WeatherInfo;
- struct _WeatherInfoNode *m_pNext;
- }KB_WeatherInfoNode;
- //政府公告
- typedef struct kb_dbBulletin_s
- {
- unsigned char titleLen;
- unsigned char *title;
- unsigned short contentLen;
- unsigned char *content;
- }kb_dbBulletin_t;
- typedef struct _BulletinInfoNode
- {
- kb_dbBulletin_t st_BulletinInfo;
- struct _BulletinInfoNode *m_pNext;
- }KB_BulletinInfoNode;
- typedef enum
- {
- kb_vote_service_superGirl,
- kb_vote_service_reserve1,
- kb_vote_service_reserve2,
- kb_vote_service_reserve3,
- kb_vote_service_reserve4,
- kb_vote_service_reserve5,
- kb_vote_service_last=250
- }kb_vote_serviceType_e;
- typedef struct kb_vote_service_s
- {
- kb_vote_serviceType_e type;
- unsigned char nameLen;
- unsigned char *name;
- unsigned char itemLen;
- unsigned char *item;
- unsigned short itemIndex;
- unsigned short itemCount;
- }kb_vote_service_t;
- typedef struct kb_vote_node_s
- {
- kb_vote_service_t voteService;
- struct kb_vote_node_s *pNext;
- }kb_vote_node_t;
- kb_vote_node_t *g_kb_vote_service[kb_vote_service_last];
- typedef struct kb_xml_serviceInfo_s
- {
- unsigned long m_freq;
- unsigned short m_nPid;
- unsigned long m_transactionsId;
- unsigned char m_string[KB_SERVICE_TYPE_NAME_MAX];
- kb_xml_servType_e m_type;
- }kb_xml_serviceInfo_t;
- typedef struct kb_xml_serviceInfoNode_s
- {
- kb_xml_serviceInfo_t st_ServiceInfo;
- struct kb_xml_serviceInfoNode_s *m_pNext;
- }kb_xml_serviceInfoNode_t;
- #endif