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.
|
|
|
|
|
#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,//<2F><><EFBFBD><EFBFBD> <20>ļ<DEB8>¼
|
|
|
|
|
|
EM_SYS_USER = 1,//<2F>û<EFBFBD><C3BB><EFBFBD>¼<EFBFBD><C2BC>¼
|
|
|
|
|
|
EM_SYS_STATUS = 2,//ϵͳ״̬<D7B4><CCAC>¼
|
|
|
|
|
|
EM_SYS_WARN = 3,//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼
|
|
|
|
|
|
EM_SYS_INFO = 4,//<2F><>Ϣ <20><><EFBFBD><EFBFBD>
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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
|