-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathanalyser.h
More file actions
50 lines (42 loc) · 1.07 KB
/
Copy pathanalyser.h
File metadata and controls
50 lines (42 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef ANALYSER_H
#define ANALYSER_H
#include <QObject>
#include "analyserthread.h"
#include "utils.h"
#include <QFile>
#include <qDebug>
#include <QList>
#include <QMutex>
//用于分配AnalyserThread线程
class Analyser : public QObject {
Q_OBJECT
public:
explicit Analyser(DBHelper *dh, QObject *parent = nullptr);
QStringList getSupportedFormatsList() const;
QStringList getSupportedFormatsFilter() const;
/**
* @brief processFileList 为param分配工作线程
* @param fileList
*/
void processFileList(const QList<File> &fileList);
int getThreadCount();
void quitAll();
signals:
void processFinished(int sc, int fc);
void threadQuit();
void threadWait(unsigned long time);
void interrupted();
void analyseProgress(int num);
public slots:
void handleResult(int success, int fail);
void analyserInterrupted();
void threadProgressAdded();
private:
DBHelper *dbHelper;
int successCount;
int failCount;
int threadCount;
QMutex mutex;
int finishCount;
};
#endif // ANALYSER_H