这是一个用来监控本地文件夹变化的服务
w1146869587
2021-11-09 f5e3a3a6785cd9305c476eadf329c8ae00161add
mbwatch/mbtasklog.h
@@ -4,6 +4,8 @@
#include <QRunnable>
#include <QWaitCondition>
#include <QMutex>
#include "mbwatchdb.h"
#include "mbmdware.h"
/************************************************************************/
/*   日志任务,用来记录备份目录下的文件变化                                    */
@@ -14,6 +16,20 @@
public:
    CMBTaskLog();
    ~CMBTaskLog();
private:
    QString     m_logDbPath;
    QString     m_backupDir;
    QString     m_svrPath;
private:
    CMBWatchDb *m_pWatchDb;
private:
    CMBMdware  *m_pMdWare;
public:
    void             setMdWare(CMBMdware *pMdWare);
public:
    void             set(QString logDbPath, QString backupDir, QString svrPath);
private:
    bool             findFile(const QString &path,QString &errInfo);
public:
    virtual          void run();
};