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.

35 lines
732 B
C++

#ifndef _LPSYSLOG_H_
#define _LPSYSLOG_H_
#include <QObject>
#include "lp_singleton_sys.h"
#include "lpLogging.h"
#include "lpLogDB.h"
#include <QStringList>
namespace SystemLog {
enum CheckType {
EM_SYS_PARAM = 0,//参数 修改记录
EM_SYS_USER = 1,//用户登录记录
EM_SYS_STATUS = 2,//系统状态记录
EM_SYS_WARN = 3,//报警记录
EM_SYS_INFO = 4,//信息 备用
};
class lpSysLog :public QObject, public lp_singleton_sys<lpSysLog>
{
Q_OBJECT
public:
lpSysLog();
~lpSysLog();
void Init();
void Release();
SysLogMsgList checkByDate(QString strDate, int type);
SysLogMsgList checkByDateTime(QString startTime, QString endTime, int type);
private:
SystemLog::lpLogDB m_DB;
};
};
using namespace SystemLog;
#endif