Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Demand.h
Package: ST_5105DTV.rar [view]
Upload User: fy98168
Upload Date: 2015-06-26
Package Size: 13771k
Code Size: 3k
Category:
DVD
Development Platform:
C/C++
- //
- // (C)版权2007 深圳市键桥通讯有限公司
- //
- // 文件名称: demand.h
- //
- // 创建日期: 2007.03.28
- //
- // 创建人 : wangxr
- //
- // 修改人 : wangxr
- //
- // 描 述: EPG预约实现头文件
- //
- // 版 本:1.0.0
- //
- //--------------------------------------------------------------------
- #include "epg.h"
- #include "Appltype.h"
- #ifndef __DEMAND_H
- #define __DEMAND_H
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #include "epg.h"
- #include "appltype.h"
- //操作标记
- #define EDHF_OPER_FLAG "EPGF"
- //最大预约节目数目
- #define EPGD_MAX_DESUM 10
- //预约类型
- typedef enum _enum_DemandType
- {
- DT_EPG=0,
- DT_NVOD ,
- DT_MANAGE
- }enumDemandType;
- //added by yyj 2007.7.16
- typedef enum _enum_DemandConflictReturnType
- {
- DEMAND_PGM_NO_CONFLICT,
- DEMAND_PGM_OVERTIME,
- DEMAND_PGM_CONFLICT
- }enumDemandConflictReturnType;
- //预约数据链
- typedef struct _EPGDDataLink
- {
- int prgno; //节目id号,查找节目索引号
- int eid;
- USHORT mjd;//播放日期
- int seconds;//事件的起始秒
- int duration;//事件的播放时长
- int edt; //事件类型
- /////added by yyj start 2007.6.11/////
- char chlname[50];//频道名称
- char date[20];//当前节目日期
- char time[20];//当前节目时间
- char prgname[50];//节目名称
- //////////////////////////////////
- struct _EPGDDataLink *nextnode;
- }EPGDDataLink;
- //预约事件结构
- typedef struct _EPGDEntLink
- {
- USHORT mjd; //播放日期 ,7天中的某一天
- time_t seconds;//起始秒
- time_t duration;//播放时长
- short eventid; //事件id号,在该天事件中的索引
- struct _EPGDEntLink *next;
- }EPGDEntLink;
- //预约频道结构
- typedef struct _EPGDChlLink
- {
- enumDemandType edt;//预约类型
- int ProgIndex;//节目索引
- EPGDEntLink *DmdEnt;
- struct _EPGDChlLink *next;
- }EPGDChlLink;
- //全局变量
- EPGDChlLink *EDTLink;
- //节目预约公用接口
- #if 0
- BOOL KB_AddDataLink(int prgno,int eid,USHORT mjd,int secs,int dur,int edt);
- #else
- BOOL KB_AddDataLink(EPGDDataLink *Demanddata);
- #endif
- BOOL KB_DelDataLink(USHORT mjd,int sec);
- void KB_ClearDataLink(void);
- void KB_DelOnTimeDmdEnt(void);
- BOOL KB_CheckOnlyOne(USHORT mjg,int secs,int * nManiIdx,int* nSubIdx);
- int KB_GetDmdEntCount(void);
- BOOL KB_GetDataLink(int nItemIdx,EPGDDataLink* pdl);
- BOOL KB_GetDataLinkNum(UINT *num);
- BOOL KB_CheckOntimeDemand(int *chno,int*type,int*entid);
- BOOL KB_CheckDmdEnt(int nChlNo,int nent,int nWeekCurTab,int type);
- int KB_AddDmdEnt(int nChlNo,int nent,int nWeekCurTab,int Evntid,int type);
- int KB_DelDmdEnt(int nChlNo,int nent,int nWeekCurTab,int type);
- int KB_SaveDmdEnt(void);
- int KB_LoadDmdEnt(void);
- int KB_CreatDmdDataLink(void);
- //yyj add 2007.7.3
- void KB_ClearAllDmdEnt(void);
- //yyj add 2007.7.4
- BOOL KB_CheckConfilictDmdEnt(USHORT mjg,int nChlNo,int nent,int * nManiIdx,int* nSubIdx,int type);
- BOOL KB_DelConfilictDmdEnt(USHORT mjg,int nChlNo,int nent,int * nManiIdx,int* nSubIdx,int type);
- #ifdef __cplusplus
- }
- #endif
- #endif