?? cc_data_struct0615.h
字號:
/**** alarm_record.if the infomation of the alarm_record ****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct alarm_record_info_struct
{
int nAlarmTouchId; //報警觸發(fā)ID int 4
int nAlarmType; //報警類型ID int 4 同報警設置表->類型ID
char szAlarmNode; //報警節(jié)點數(shù) char 1 最多10個
// int nAlarmNodeId[CC_ALARM_NODE_NUM]; //報警節(jié)點ID int 40 Int 數(shù)組,數(shù)組長度為10
char szAlarmRoomNode[CC_ALARM_ROOM_NODE_LEN]; //報警房間節(jié)點信息 41*5+1最多保存5個房間節(jié)點信息,格式:房間名稱+節(jié)點名稱+分隔符“,”
int nAlarmTime; //報警時間 int 4 報警觸發(fā)的時間
char cIsAlarm; //是否當前報警 char 1 0-為歷史報警 1-為當前報警
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** alarm_message.if the infomation of the alarm_message****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct alarm_message_record_info_struct
{
int nId; //ID int 4 標識ID
int nAlarmTouchId; //報警觸發(fā)ID int 4 報警觸發(fā)ID
char cNotifyType; //通知類型 char 1 1-短信 2-電話 3-郵件
char szNotifyGoal[31]; //通知對象 char 30+1 單個的郵件,手機,電話
int nTapeRecordId; //錄音ID int 4 電話報警發(fā)送的ID
char cResult; //執(zhí)行結果 char 1 0-成功 1-失敗
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** irda_fun.if the infomation of the irda_fun ****/
/**** is added,it the cell of the struct that ****/
/**** is szKeepCode will be used as the added ****/
/**** infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct irda_fun_info_struct
{
int nInfraredId; //ID int 4 標識ID
int nInfFunId; /*紅外功能ID int 4 0:空調開
1:空調關
2:電視開/關
3:向上節(jié)目查詢
4.向下節(jié)目查詢
5.音量增
6.銀量減*/
int nInfFunName; //紅外功能名稱 int 4 紅外設備ID
char szKeepCode[CC_KEEP_CODE_LEN];//保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** remoter_control.if the infomation of the ****/
/**** remoter_control is added,it the cell of the ****/
/**** struct that is szKeepCode will be used as ****/
/**** the added infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct remoter_control_info_struct
{
int nRCKId; //ID int 4 標識ID
int nRCKValue; //遙控器按鍵值 int 4
char cType; //類型 char 1 1-設備 2-場景
int nBindObject; //綁定對象ID int 4 場景或設備ID
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
/*************************************************************/
/*************************************************************/
/**** Create by Eagegao in 2004-12-17 ****/
/**** this struct identified the infomation of a ****/
/**** expenditure.if the infomation of the ****/
/**** expenditure is added,it the cell of the ****/
/**** struct that is szKeepCode will be used as ****/
/**** the added infomation. ****/
/**** this struct won't be saved in the database ****/
/*************************************************************/
/*************************************************************/
struct expenditure_info_struct
{
int nSPayId; //ID int 4
char cSPayItem; //開支項 char 30
int nSPayTime; //開支時間 int 4 用戶選擇
int nRecordTime; //記錄時間 int 4 中控自動記錄
char szSPayer[CC_SPAYER_LEN]; //開支人 char 20+1
char cSPayType; //開支類型 char 1 0:支出 1.支入
int nSPayQuan; //開支金額 int 4 以分為單位
char szRemark[CC_REMARK_LEN]; //備注 char 80+1
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
//定義數(shù)據(jù)字段中枚舉值的宏
#define DEV_VIRTUAL 0 //虛設備的設備地址
#define DEV_SYSSTATUS_ONLINE 1 //設備狀態(tài):在線
#define DEV_SYSSTATUS_OFFLINE 0 //設備狀態(tài):離線
#define DEV_OPERSOURCE_CC 0 //中控
#define DEV_OPERSOURCE_RC 1 //遙控器
#define DEV_OPERSOURCE_PAN 2 //設備面板
#define DEV_OPERSOURCE_TEL 3 //電話
#define DEV_OPERSOURCE_WEB 4 //web遠控
#define SCENE_TYPE_GETUP 0 //起夜
#define SCENE_TYPE_SLEEP 1 //睡眠
#define SCENE_TYPE_GETOUT 2 //離家
#define SCENE_TYPE_BACK 3 //歸家
#define SCENE_TYPE_MEETING 4 //會客
#define SCENE_TYPE_DEFINE 5 //子定義
#define SCENE_TYPE_CINEMA 6 //家庭影院
#define DEV_OPER_OPEN 1 //開
#define DEV_OPER_CLOSE 2 //關
#define DEV_OPER_STOP 3 //停用
#define DEV_OPER_STARTUP 4 //啟用
#define ALARMSPRING_HIS 0 //歷史報警
#define ALARMSPRING_CUR 1 //當前報警
#define ALARMSPRING_ALL 255 //所有報警(用于查詢參數(shù))
#define TIMER_BUSTYPE_CLOCK 1 //鬧鐘業(yè)務類型
#define TIMER_BUSTYPE_SCHEDULE 2 //日程業(yè)務日程
#define TIMER_BUSTYPE_TICKLER 3 //備忘錄業(yè)務日程
#define SCHEDULE_DEV_TIMEPOINT 1 //日程為設備時間點
#define SCHEDULE_DEV_TIMESECTION 2 //日程為設備時間段
#define SCHEDULE_DEV_SCENE 3 //日程為場景(時間段)
#define REMOTEBIND_DEV 1 //遙控器綁定設備
#define REMOTEBIND_SCENE 2 //遙控器綁定場景
#define DEV_TYPE_LOCK 3 //設備類型為門磁
#define DEV_TYPE_GUARD 4 //設備類型為門禁
#define DEVICE_SYSNODE 0x00//中控信號轉換器
#define DEVICE_ADJUSTLIGHT 0x01//照明燈控制器(可調燈)
#define DEVICE_SWITCHLIGHT 0x02//照明燈控制器(開關性)
#define DEVICE_ORIGSWITCH 0x03//電源插座
#define DEVICE_TEMPERATURE 0x04//溫度探測器
#define DEVICE_BRIGHTNESS 0x05//光感探測器
#define DEVICE_COULOMETER 0x06//電力計量器
#define DEVICE_SYSPOWER 0x07//系統(tǒng)電源
#define DEVICE_SMOKE 0x08//煙霧探測器
#define DEVICE_ALARM 0x09//報警器
#define DEVICE_HARMFULLGAS 0x0a//毒氣探測器
#define DEVICE_IRSCAN 0x0b//人體紅外探測器
#define DEVICE_DOORKEY 0x0c//門禁控制器
#define DEVICE_DOORCARD 0x0d//門磁探測器
#define DEVICE_IR 0x0e//紅外收發(fā)探測器
#define MAX_DEVICE_COUNT 0x0e + 1
#define DUMMY_AIRCONDITION 0x0101//紅外控制空調
#define DUMMY_TV 0x0102//紅外控制電視
#define DUMMY_DEPENDSOCKET 0x0200//依靠綁定設備
#define DEVICE_VIRTUAL 1000 //大于等于1000為虛設備,其中大于1000為紅外虛設備
//檢查重名的請求參數(shù)結構
//設備
typedef struct TagSumParamDev
{
int nHouseID;
char DevName[CC_DEVIE_NAME_LEN];
}SumParamDev,*pSumParamDev;
//場景表
typedef struct TagSumParamScene
{
int nHouseID;
char SceneName[CC_SCENE_NAME_LEN];
}SumParamScene,*pSumParamScene;
//房間
typedef struct TagSumParamHouse
{
char HouseName[CC_ROOM_NAME_LEN];
}SumParamHouse,*pSumParamHouse;
//卡號(用戶
typedef struct TagSumParamCard
{
char CardNum[CC_CARD_NUM_LEN];
}SumParamCard,*pSumParamCard;
//門磁碼表
typedef struct TagSumParamLock
{
char LockName[CC_DOOR_MAGCODE_LEN];
}SumParamLock,*pSumParamLock;
typedef struct TagSumParamPartDefence
{
int nRoomId; //房間ID Int 4
char cLookType; //類型 Byte 1 // 會出錯,當成int類型來處理
int nStartTime; //起始時間
int nEndTime; //結束時間 UINT 4 同上,但要晚于上面的時間
}SumParamPartDefence,*pSumParamPartDefence;
typedef struct TagDelParamTimer
{
char cBusiType; //業(yè)務類型 char 1 1-鬧鐘 2-日程 3-備忘錄
int nBusiId; //業(yè)務ID int 4 根據(jù)業(yè)務類型確定的業(yè)務ID
}DelParamTimer,*pDelParamTimer;
typedef struct TagSumParamGroup
{
char nGroup;//組ID Int 4 組的標識ID
char nGroupName[PHONEBOOKGROUP_NAME_LEN];//組名稱 Char 20+1 用戶可自定義的名稱
}SumParamGroup,*pSumParamGroup;
//中控通信薄
typedef struct TagPMBook
{
int nGroupID; //組ID Int 4
char szName[PHONEBOOK_NAME_LEN]; //昵稱 Char 20+1
}SumParamPMBook,*pSumParamPMBook;
typedef struct TagPTBook
{
int nGroupID; //組ID Int 4 根據(jù)組的類型確定類型
char szName[PHONEBOOK_NAME_LEN]; //姓名 Char 20+1
}SumParamPTBook,*pSumParamPTBook;
//語音留言
#define VOICEUSER_NAME_LEN 21
#define VOICETITLE_NAME_LEN 21
struct voice_info_struct
{
int nvoiceID;//識ID Int 4
char szTitle[VOICETITLE_NAME_LEN]; //留言標題 char 20+1
int nSrcUserID ; // 留言用戶ID int 4
char szSrcUserName[VOICEUSER_NAME_LEN] ; // 留言人名稱 char 20+1
int nDestUserID ; // 目標用戶ID int 4
char szDestUserName[VOICEUSER_NAME_LEN] ; // 收聽人名稱 Char 20+1
int nTimeLen ; // 留言時間長度 Int 4
int nCreateFileTime ; // 留言時間 Int 4
char cState ; // 已讀狀態(tài) Char 1 0:未讀1:已讀
};
//通信簿分組
struct PhoneBookGroup_info_struct
{
int nGroup;//組ID Int 4 組的標識ID
char nGroupName[PHONEBOOKGROUP_NAME_LEN];//組名稱 Char 20+1 用戶可自定義的名稱
char cGroupType;//組類型ID Byte 1 1-中控電話薄2-pc用戶簿3-普通電話簿
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
//中控通信薄
struct phonebook_cc_struct
{
int nPhoneBookID; //聯(lián)系人ID Int 4
int nGroupID; //組ID Int 4
char szName[PHONEBOOK_NAME_LEN]; //昵稱 Char 20+1
char szPhoneNum[PHONEBOOK_NUMBER_LEN]; //號碼 Char 20+1
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
#define PHONEBOOK_HOMETELEPHONE_LEN 21
#define PHONEBOOK_WORKTELEPHONE_LEN 21
#define PHONEBOOK_MOBILE_LEN 15
#define PHONEBOOK_EMAIL_LEN 31
#define PHONEBOOK_ADDRESS_LEN 61
#define PHONEBOOK_REMARK_LEN 81
//中控通信薄(普通)
struct phonebook_pt_struct
{
int nPhoneBookId; //ID Int 4
int nGroupID; //組ID Int 4 根據(jù)組的類型確定類型
char szName[PHONEBOOK_NAME_LEN]; //姓名 Char 20+1
char cSex; //性別 Byte 1 0-女,1-男
char szBornDate[CC_BORN_DATE_LEN]; //出生年月 char 8+1 YYYYMMDD
char szHomeTelephone[PHONEBOOK_HOMETELEPHONE_LEN]; //住宅電話 Char 20+1
char szWorkTelephone[PHONEBOOK_WORKTELEPHONE_LEN]; //工作電話 Char 20+1
char szMobile[PHONEBOOK_MOBILE_LEN]; //手機號碼 Char 14+1
char szEmail[PHONEBOOK_EMAIL_LEN]; //郵箱 Char 30+1
char szAddress[PHONEBOOK_ADDRESS_LEN]; //地址 Char 60+1
char szRemark[CC_REMARK_LEN]; //備注 char 80+1
char szKeepCode[CC_KEEP_CODE_LEN]; //保留字段 char 10 保留
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -