www.pudn.com > crestroncontrol.rar > UBaseControlMessage.h, change:2005-12-20,size:12531b


//--------------------------------------------------------------------------- 
#ifndef UBaseControlMessageH 
#define UBaseControlMessageH 
 
#define CC_BASE_MESSAGE_LENGTH  44 
#define CC_BASE_MESSAGE_512     524 
#define CC_BUFFER_LENGTH        1024 
#define CC_ZERO                 Ox00 
#define CC_HEAD                 0xFFFFFFFF 
#define CC_FE                   0xFE 
 
#define CRESTRON_CAM_DELAY      2 
#define BROAD_ADDRESS           255 
 
#define CCONFIGURATION_FILE     "CConfiguration.aya" 
#define SCM_DEVICE_COUNT        150 
 
#define CAM_PANORAMA_PRESET     150 
 
#define SPK_MODE_CHAIRMAN       0 
#define SPK_MODE_DELEGATE       1 
#define SPK_MODE_OVERRIDE       2 
 
#define SPK_LIST_SPEAK          1 
#define SPK_LIST_APPLY          0 
 
#define SPK_ACTION_APPLY        1 
#define SPK_ACTION_STARTSPEAK   2 
#define SPK_ACTION_ENDSPEAK     3 
#define SPK_ACTION_CANCEL       4 
 
#define MIC_CHAIRMAN            7 
#define MIC_COCHAIRMAN          8 
#define MIC_REPORT_1            149 
#define MIC_REPORT_2            150 
 
#define COMPUTER_CLOSE          1000 
#define PROGRAM_RUN             2000 
#define COMPUTER_RESTART        3000 
#define COMPUTER_MAC            4000 
#define CLIENT_DISCONNECT       5000 
#define CLIENT_CONNECT          6000 
 
#define INIT_LIVE_SERVER_INTERVAL   10000 
#define LIVE_SERVER_INTERVAL        5000 
 
#define PROJECTOR_LEFT          1 
#define PROJECTOR_RIGHT         2 
#define PROJECTOR_LEFT_MAC      "00-10-F3-06-67-F3" 
#define PROJECTOR_RIGHT_MAC     "00-10-F3-06-54-E9" 
 
#define SIGN_IN_USER_MESSAGE        WM_USER+100 
#define OUT_PUT_TO_LCD_MESSAGE      WM_USER+101 
#define MAIN_FORM_NORMAL_MESSAGE    WM_USER+102 
 
#define SERVER_CONNECT_FLAG         100001    //与Server连接标记 
 
#define SCR_WORD_TEXT               101001    //设置字幕文字 
#define SCR_WORD_SCROLL             101002    //字幕滚动方式 
#define SCR_WORD_POS                101003    //字幕显示位置 
#define SCR_WORD_TEXT_FONT          101004    //字幕文字字体 
#define SCR_WORD_BKG_COLOR          101005    //字幕背景颜色 
#define SCR_WORD_BOARD_COLOR        101006    //字幕边界颜色 
 
#define PWR_OFF_SERVER_INNERLIVE    110001    //内网直播服务器 
#define PWR_OFF_SERVER_OUTERLIVE    110002    //内网直播服务器 
#define PWR_OFF_SERVER_TITLE        110003    //字幕机 
#define PWR_OFF_SERVER_MULTIDIVIDE  110004    //多画面分割器 
#define PWR_OFF_SERVER_MEDIAMANAGE  110005    //媒体资源管理机 
#define PWR_OFF_SERVER_CHAIRMAN     110006    //正主席控制机 
#define PWR_OFF_SERVER_COCHAIRMAN   110007    //副主席控制机 
 
#define RESET_SERVER_INNERLIVE      110011    //内网直播服务器 
#define RESET_SERVER_OUTERLIVE      110012    //内网直播服务器 
#define RESET_SERVER_TITLE          110013    //字幕机 
#define RESET_SERVER_MULTIDIVIDE    110014    //多画面分割器 
#define RESET_SERVER_MEDIAMANAGE    110015    //媒体资源管理机 
#define RESET_SERVER_CHAIRMAN       110016    //正主席控制机 
#define RESET_SERVER_COCHAIRMAN     110017    //副主席控制机 
 
#define TV_CHANNEL_SELECT           130001    //TV调台 
 
#define CHM_CTRL_MODE_TRACK         151051    //主席屏跟随公共信号 
#define CHM_CTRL_MODE_UNTRACK       151052    //主席屏不跟随公共信号 
#define COCHM_CTRL_MODE_TRACK       151053    //副主席屏跟随公共信号 
#define COCHM_CTRL_MODE_UNTRACK     151054    //副主席屏不跟随公共信号 
 
#define PROJECTOR_STATUS            160000    //左右投影机的温度和湿度 
 
#define RESUME_SERVER               170010      //Active server 
#define SUSPEND_SERVER              170011      //suspend server 
 
#define SPK_DCN_INIT                300001    //初始化DCN 
#define SPK_INIT_CAMPOS             300002    //初始化摄像机位置 
#define SPK_ASK_SPEAK               301001    //允许某个代表发言 or 发言人请求发言 
#define SPK_CANCEL_SPEAK            301002    //取消发言 
#define SPK_START_SPEAK             301003    //开始发言 
#define SPK_END_SPEAK               301004    //结束发言 
#define SPK_CHAIRMAN_MIC_ON         301005    //主席话筒开 
#define SPK_CHAIRMAN_MIC_OFF        301006    //主席话筒关 
#define SPK_SET_SPEAK_TIME          302001    //设定发言时间 
#define SPK_CANCEL_SPEAK_TIME       302002    //取消发言时间 
#define SPK_LAST_MINUTE_WARNING     302003    //最后一分钟提醒 
#define SPK_SHUTDOWN_MIC            302004    //到时关闭话筒 
#define SPK_TIMER_COUNT             302005    //发言计时 
#define SPK_VOICE_INFO              302006    //声音提醒 
#define SPK_SET_SPEAK_MODE          303001    //设置话筒模式 
#define SPK_GET_SPEAK_MODE          303002    //获取话筒模式 
#define SPK_SET_ACTIVE_MICS         303003    //设置活动话筒数 
#define SPK_SET_SPEAKMODE_ACTIVEMIC 303004    //设置发言模式和活动话筒数(主席机用) 
#define SPK_SYSTEM_INIT             304001    //初始化发言系统 
#define CARD_MODE_NEED              305001      //需要插卡 
#define CARD_MODE_NO_NEED           305002      //不需要插卡 
 
#define VOTE_START_VOTE             601001    //开始表决 
#define VOTE_END_VOTE               601002    //结束表决 
#define VOTE_LOOK_VOTE_RESULT       601003    //查看表决结果 
#define VOTE_ENDED_NOTICE           601011    //表决已结束 
#define VOTE_SELECT_VOTE_TITLE      601004    //选择表决的议题 
#define VOTE_CANCEL_VOTE_TITLE      601005    //取消选择的议题 
#define VOTE_VOTE_RESULT            602001    //表决结果 
#define LCD_NOTIFY_INFO             603001    //发送文字信息到LCD屏 
#define LCD_DELEG_PC_INIT           604001    //初始化代表机 
 
#define MEET_DIS_MEET               701001    //显示会标 
#define MEET_MEET_CONTENT           702001    //会标内容 
 
#define SWITCH_TO_MEETING_TITLE     850001      //会标 
#define SWITCH_TO_RESULT_NOTE       850002      //签到表决结果 
#define SWITCH_TO_VIDEO_SIGNAL      850003      //显示视频信号 
 
#define CRESTRON_SWITCH_TITLE       "801309" 
#define CRESTRON_SWITCH_NOTE        "801310" 
#define CRESTRON_SWITCH_VIDEO       "801313" 
//---------------------------------------------------------------------------- 
//投影机消息 
//---------------------------------------------------------------------------- 
#define PROG_OPEN_PROJECT_LEFT_SUCCESS   900111    //开左投影仪 
#define PROG_OPEN_PROJECT_LEFT_FAIL      900211    //开左投影仪 
#define PROG_CLOSE_PROJECT_LEFT_SUCCESS  900112    //关机 
#define PROG_CLOSE_PROJECT_LEFT_FAIL     900212    //关机 
 
#define PROG_OPEN_PROJECT_RIGHT_SUCCESS  900113 
#define PROG_OPEN_PROJECT_RIGHT_FAIL     900213 
#define PROG_CLOSE_PROJECT_RIGHT_SUCCESS 900114 
#define PROG_CLOSE_PROJECT_RIGHT_FAIL    900214 
 
#define PROG_LEFT_PLAY_SOUCE             900021    //播放信号 
#define PROG_LEFT_PLAY_SOUCE_SUCCESS     900121    //播放信号 
#define PROG_LEFT_PLAY_SOUCE_ERROR       900221    //播放信号 
#define PROG_RIGHT_PLAY_SOUCE            900022    //播放信号 
#define PROG_RIGHT_PLAY_SOUCE_SUCCESS    900122    //播放信号 
#define PROG_RIGHT_PLAY_SOUCE_ERROR      900222    //播放信号 
#define PROG_LEFT_WORD_INTRODUCE         900023    //介绍 
#define PROG_RIGHT_WORD_INTRODUCE        900024    //介绍 
 
#define PROG_LEFT_FULLSCREEN             900031    //全屏 
#define PROG_LEFT_FULLSCREEN_SUCCESS     900131    //全屏 
#define PROG_LEFT_FULLSCREEN_ERROR       900231    //全屏 
#define PROG_RIGHT_FULLSCREEN            900032    //全屏 
#define PROG_RIGHT_FULLSCREEN_SUCCESS    900132    //全屏 
#define PROG_RIGHT_FULLSCREEN_ERROR      900232    //全屏 
 
#define PROG_SERVER_ON_LEFT              900041    //左投影机服务器开 
#define PROG_SERVER_ON_LEFT_SUCCESS      900141 
#define PROG_SERVER_ON_LEFT_FAIL         900241 
#define PROG_SERVER_OFF_LEFT             900042    //左投影机服务器关 
#define PROG_SERVER_OFF_LEFT_SUCCESS     900142 
#define PROG_SERVER_OFF_LEFT_FAIL        900242 
 
#define PROG_SERVER_ON_RIGHT             900043    //右投影机服务器开 
#define PROG_SERVER_ON_RIGHT_SUCCESS     900143 
#define PROG_SERVER_ON_RIGHT_FAIL        900243 
#define PROG_SERVER_OFF_RIGHT            900044    //右投影机服务器关 
#define PROG_SERVER_OFF_RIGHT_SUCCESS    900144 
#define PROG_SERVER_OFF_RIGHT_FAIL       900244 
 
#define PROG_PUB_INFO_FIRST              801401  //信息点1    
 
//[500000]  报道 SIG 
 
//显示报道结果 
#define SIG_DIS_COME_RESULT         501001 
//报道结果 
#define SIG_COME_RESULT             502001 
//代表报道 
#define SIG_DELE_SIGNIN 	        503001 
//代表离场 
#define SIG_DELE_SIGNOUT            503002 
//打开报到 
#define SIG_SIGNIN_ON               504001 
//关闭报到 
#define SIG_SIGNIN_OFF              504002 
 
//[200000]  摄像头 CAM_ 
 
//打开摄像头 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_OPEN            201001 
 
//关闭摄像头 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_CLOSE           201002 
 
//设置预设位 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
//		Data[1]	编号 
#define CAM_PRESET          201011 
 
//移动到预设位 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
//		Data[1] 编号 
#define CAM_MOVETO          201012 
 
//左移动 
//TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_LR_01           201021 
 
//右移动 
//TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_LR_02           201022 
 
//横向停止 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_LR_STOP         201023 
 
//上移动 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_UPDOWN_01       201031 
 
//下移动 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_UPDOWN_02       201032 
 
//纵向停止 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_UPDOWN_STOP     201033 
 
//变焦放大 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_ZOOM_01         201041 
 
//变焦缩小 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_ZOOM_02         201042 
 
//变焦停止 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_ZOOM_STOP       201043 
 
//调焦远端 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_FOCUS_01        201051 
 
//调焦近端 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_FOCUS_02        201052 
 
//调焦停止 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
#define CAM_FOCUS_STOP      201053 
 
//设置左限位 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
//		Data[1]位置 
#define CAM_LIMIT_01        201061 
 
//  设置右限位 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
//		Data[1]位置 
#define CAM_LIMIT_02        201062 
 
//设置上限位 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
//		Data[1]位置 
#define CAM_LIMIT_03        201063 
 
//设置下限位 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
//		Data[1]位置 
#define CAM_LIMIT_04        201064 
 
//设置调节速度 
//  TCCBaseIntMessage 
//		Data[0]摄像头编号 
//		Data[1]调节速度 
#define CAM_CONTROL_SPEED   201071 
 
 
#include <StdCtrls.hpp> 
#include <map> 
//ID String map 
typedef std::map<int, AnsiString> ID_String_Type; 
 
struct TSocketBuffer 
{ 
    char    Data[CC_BUFFER_LENGTH]; 
    int     Point; 
}; 
 
struct TCCBaseMessage 
{ 
    unsigned int    Head; 
    unsigned int    Length; 
    unsigned int    Class; 
    char            Buffer[32]; 
}; 
 
struct TCCBaseMessage_512 
{ 
    unsigned int    Head; 
    unsigned int    Length; 
    unsigned int    Class; 
    int             Data[4]; 
    char            Buffer[496]; 
}; 
 
struct TCCBaseIntMessage 
{ 
    unsigned int    Head; 
    unsigned int    Length; 
    unsigned int    Class; 
    int				Data[8]; 
}; 
 
struct TCCBaseVoteMessage 
{ 
    unsigned int    Head; 
    unsigned int    Length; 
    unsigned int    Class; 
    int				Data[4]; 
    char			Vote[16]; 
}; 
 
struct TCCBaseMeetMessage 
{ 
    unsigned int    Head; 
    unsigned int    Length; 
    unsigned int    Class; 
    char			Meet[32]; 
}; 
 
struct TCCBaseScreenFontMessage 
{ 
    unsigned int    Head; 
    unsigned int    Length; 
    unsigned int    Class; 
    unsigned short  size;//字体大小 
    unsigned short  bold;//粗体 
    unsigned short  Italic;//斜体 
    unsigned short  underline;//下划线 
    unsigned short  strikeout;//删除线 
    unsigned char   RColor; 
    unsigned char   GColor; 
    unsigned char   BColor; 
    char	        name[19];//字体名称 
}; 
 
struct TEquipStatus 
{ 
    unsigned int Seat_Card; 
    int Card_Mic; 
     
    int EquipID; 
    int MicID; 
    int SCM_GroupID; 
    int SCM_ID; 
    int Cam_GroupID; 
    int CamPresetID; 
}; 
 
struct TCCPowerManageMessage 
{ 
    unsigned int    Head; 
    unsigned int    Length; 
    unsigned int    Class; 
    char            IP[16]; 
    char            Buffer[500]; 
}; 
//--------------------------------------------------------------------------- 
#endif