-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunrar.h
51 lines (37 loc) · 897 Bytes
/
unrar.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
51
#ifndef UNRAR_H
#define UNRAR_H
#include <QObject>
#include <QProcess>
#include <QRegularExpression>
#include <QRegularExpressionMatch>
#include <QMutex>
#ifdef QT_DEBUG
#include <QDebug>
#endif
class UnRAR : public QObject
{
Q_OBJECT
public:
explicit UnRAR(QStringList data);
~UnRAR();
QString id;
signals:
void finished();
void updateUnRarProgress(QString id, QString fileName, int progress);
public slots:
void startUnRAR();
private slots:
void ReadOut();
void ReadErr();
private:
QProcess *p;
QStringList data;
QString file; // file to extract
QString destPath; // extract destination
QString unar; // unrar location
QString command; // unrar command(s)
QString fileName; // current extracting
int progress;
QMutex mutex;
};
#endif // UNRAR_H