| | |
| | | #include <QRunnable> |
| | | #include <QWaitCondition> |
| | | #include <QMutex> |
| | | #include "mbwatchdb.h" |
| | | #include "mbmdware.h" |
| | | |
| | | /************************************************************************/ |
| | | /* 日志任务,用来记录备份目录下的文件变化 */ |
| | |
| | | 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(); |
| | | }; |