1 Star 0 Fork 5

shengzhe8688 / gamePlanTool

forked from Acreate / gamePlanTool 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
LoadDiscDirInfoThread.h 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
箜栢 提交于 2020-03-02 09:14 . 第一次提交
#ifndef H_MY__LOADDATA_H__H
#define H_MY__LOADDATA_H__H
#include <qstring.h>
#include <QList>
#include <QFile>
#include <qobject.h>
#include <QDir>
#include <string>
#include <QFileInfo>
#include <qtreewidgetitemiterator.h>
#include <QMutexLocker>
#include <qmutex.h>
#include <qrunnable.h>
#include "SappInstance.h"
#include "MyTreeWidgetItemData.h"
#include <QThread>
namespace lThread {
class LoadDiscDirInfoThread;
}
class lThread::LoadDiscDirInfoThread : public QThread {
Q_OBJECT;
private:
QThread* loadThreadObj = Q_NULLPTR;
QString parenPath = "";
QString timeFromat = "";
QTreeWidget* treeWidget = Q_NULLPTR;
const SigInstance* m_sigInstance = Q_NULLPTR;
void foreachFilePath(QTreeWidgetItem* paren_item, QDir paren_path, QString& time_fromatl);
QMutex* threadMutex( );
int* threadRunStatus(int* status = Q_NULLPTR);
void releaseResources( );
protected:
void run( ) override;
public:
void startTask( );
void runTask( );
void stopTask( );
friend class appInstances::LoadDiscDirInfoThread;
void setTask(QTreeWidget* treeWidget, QString* foreachPath, QString* timeFormat);
~LoadDiscDirInfoThread( );
LoadDiscDirInfoThread(const SigInstance* sigInstance, QWidget* paren = Q_NULLPTR);
signals:
// 任务完成
void overThreadTask(LoadDiscDirInfoThread* threadObj, QTreeWidget* treeWidget, QString rootFilePath, QString timeFromat, QList<MyTreeWidgetItemData*>* treeList, int runCode);
// 任务开始
void startThreadTask(LoadDiscDirInfoThread* obj);
// 任务进度
void execute(int taskNumber, int taskIndex, const QString& pathFull, const int status);
};
#endif // H_MY__LOADDATA_H__H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/shengzhe8688/gamePlanTool.git
git@gitee.com:shengzhe8688/gamePlanTool.git
shengzhe8688
gamePlanTool
gamePlanTool
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891