You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
795 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef _H_LPSYSCONFIG_H_
#define _H_LPSYSCONFIG_H_
#include <QObject>
#include "lp_singleton_base.h"
class lpSysConfig : public QObject,public lp_singleton_base<lpSysConfig>
{
Q_OBJECT
public:
lpSysConfig(QObject *parent = nullptr);
~lpSysConfig();
void readConfig();
void writeConfig();
public:
QString m_ComName{"COM3"};
int m_Baut{ 115200 };
QString m_CurLanguage{"Chinese"};//中英翻译语言
QString m_AppPath;//应用程序根目录
int m_CheckFileDays{ 7 };//检测保存图片超过的时间bmp格式的图片 由算法自动保存的2~5M大小
int m_CheckDirDays{ 30 };//检测保存结果图片文件夹超过的时间(保存的是缩略图 100多k大小的图片
bool m_CheckEnable{ false };
int m_MinSpaceSizeG{ 10 };//G
int m_TrigerFilter{ 10 };
bool m_bSaveSrcImg{ false };
private:
QString m_CfgPath;
};
#endif