#ifndef APPCONFIG_H #define APPCONFIG_H #include "head.h" class AppConfig { public: static QString FontName; //全局字体名称 static int FontSize; //全局字体大小 static QString ConfigFile; //配置文件文件路径及名称 //主配置文件 static QString BgImage; //背景图片 static bool UseInput; //是否启用输入法 static QString InputPosition; //输入法显示位置 static int MainWidth; //主窗体宽度 static int MainHeight; //主窗体高度 static QString CurrentUserID; //当前用户编号 static int CurrentHandIndex; //当前用户手指索引 //网络设置配置 static QString IPClient; //本地IP地址 static QString MaskClient; //本地子网掩码 static QString GatewayClient; //本地网关 static QString PortClient; //业务端口 static QString IPServer; //服务器IP地址 static QString PortServer; //服务器端口 static QString IPServer2; //服务器备用IP //业务设置配置 static int OpenMode; //开柜验证模式 static bool OpenAuthor; //开柜远程审批 static int LogMode; //日志验证模式 static bool LogAuthor; //日志远程审批 static int ConfigMode; //设置验证模式 static bool ConfigAuthor; //设置远程审批 static bool UserPwd; //启用用户密码 static bool Admin; //执行管理权限 //系统设置配置 static bool VolumnTip; //声音提示 static bool LinkSnap; //联动抓拍 static QString OSD; //OSD水印设置 static int TimeAlarm; //报警持续时间 static int Temp; //温度 static int Volumn; //音量 static int TimeClose; //屏保时间 //报警设置参数 static int AlarmMode1; //震动报警报警级别 static bool AlarmLink1; //震动报警联动报警 static bool AlarmUp1; //震动报警上传中心 static int AlarmMode2; //市电掉电报警级别 static bool AlarmLink2; //市电掉电联动报警 static bool AlarmUp2; //市电掉电上传中心 static int AlarmMode3; //金属误入插入报警级别 static bool AlarmLink3; //金属误入插入联动报警 static bool AlarmUp3; //金属误入插入上传中心 static int AlarmMode4; //温度报警报警级别 static bool AlarmLink4; //温度报警联动报警 static bool AlarmUp4; //温度报警上传中心 static int AlarmMode5; //非法开门报警级别 static bool AlarmLink5; //非法开门联动报警 static bool AlarmUp5; //非法开门上传中心 static int AlarmMode6; //开门时间过久报警级别 static bool AlarmLink6; //开门时间过久联动报警 static bool AlarmUp6; //开门时间过久上传中心 static int AlarmMode7; //尝试次数过多报警级别 static bool AlarmLink7; //尝试次数过多联动报警 static bool AlarmUp7; //尝试次数过多上传中心 static int AlarmMode8; //故障报警报警级别 static bool AlarmLink8; //故障报警联动报警 static bool AlarmUp8; //故障报警上传中心 static void readConfig(); //读取配置文件,在main函数最开始加载程序载入 static void writeConfig(); //写入配置文件,在更改配置文件程序关闭时调用 //用户信息表 static int UserInfo_Count; static QList UserInfo_UserID; static QList UserInfo_UserName; static QList UserInfo_UserPwd; static QList UserInfo_UserAdmin; static QList UserInfo_UserDoor; static QList UserInfo_UserFinger; }; #endif // APPCONFIG_H