#ifndef _LPSYSLOG_H_ #define _LPSYSLOG_H_ #include #include "lp_singleton_sys.h" #include "lpLogging.h" #include "lpLogDB.h" #include 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 { 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