-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmultiupxmanager.h
50 lines (40 loc) · 1.29 KB
/
multiupxmanager.h
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 MULTITHREADMANAGER_H
#define MULTITHREADMANAGER_H
#include <QObject>
#include <Qmap>
#include <QProcess>
class MultiUpxManager :public QObject
{
Q_OBJECT
public:
MultiUpxManager();
enum FileStatus {
Idle, // 空闲状态,未压缩
Success, // 压缩成功(完成)
Compressing, // 压缩中
Decompressing, // 解压中
Error, // 压缩失败(完成)
HasCompress, // 压缩失败(已经被压缩)
FileNotFound, // 压缩失败(已经被压缩)
NotCompress, // 解压失败(没有被压缩)
};
void setBackupEnable(bool enable);
void setCompressionLv(const quint32 &value);
void createMap( QStringList &fIlePath );
QString getIdleFile();
void compress(QStringList filePath , qint32 multiThread);
void decompress(QStringList filePath , qint32 multiThread);
void test(QString filePath );
signals:
void signals_fileStatus( QString , FileStatus );
void signals_finishCompress( );
void signals_errMsg( QString );
public slots:
private:
QString argLv;
QString argBuckup;
QMap<QString, FileStatus> fileStaMap;
qint32 fileCount = 0;
QList< QProcess *> upx;
};
#endif // MULTITHREADMANAGER_H