27 lines
803 B
C
27 lines
803 B
C
|
#ifndef APPCONFIG_H
|
|||
|
#define APPCONFIG_H
|
|||
|
|
|||
|
#include "head.h"
|
|||
|
|
|||
|
class AppConfig
|
|||
|
{
|
|||
|
public:
|
|||
|
static QString ConfigFile; //配置文件路径
|
|||
|
|
|||
|
static int ListenPort1; //监听端口1
|
|||
|
static int CmdStart1; //标识符1开始
|
|||
|
static int CmdLen1; //标识符1长度
|
|||
|
static bool HexData1; //16进制显示
|
|||
|
|
|||
|
static int ListenPort2; //监听端口2
|
|||
|
static int CmdStart2; //标识符2开始
|
|||
|
static int CmdLen2; //标识符2长度
|
|||
|
static bool HexData2; //16进制显示
|
|||
|
|
|||
|
//读写配置参数及其他操作
|
|||
|
static void readConfig(); //读取配置参数
|
|||
|
static void writeConfig(); //写入配置参数
|
|||
|
};
|
|||
|
|
|||
|
#endif // APPCONFIG_H
|