-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathaudit.h
72 lines (56 loc) · 1.05 KB
/
audit.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef _AUDIT_H_
#define _AUDIT_H_
#include <QtGui>
enum
{
AUDIT_ONLY = 0,
AUDIT_EXPORT_COMPLETE,
AUDIT_EXPORT_ALL,
AUDIT_EXPORT_INCOMPLETE,
AUDIT_EXPORT_MISSING
};
enum
{
VERIFY_CURRENT_ROMS = 0,
VERIFY_ALL_ROMS,
VERIFY_CURRENT_SAMPLES,
VERIFY_ALL_SAMPLES
};
class RomAuditor : public QThread
{
Q_OBJECT
public:
RomAuditor(QObject *parent = 0);
~RomAuditor();
void audit(bool = false, int = AUDIT_ONLY, QString = "");
public slots:
void exportDat();
signals:
void progressSwitched(int max, QString title = "");
void progressUpdated(int progress);
void logUpdated(char, QString);
protected:
void run();
private:
void auditConsole(QString);
bool isConsoleFolder;
bool hasAudited;
int method;
QString fixDatFileName;
QMutex mutex;
};
class MameExeRomAuditor : public QObject
{
Q_OBJECT
public:
QProcess *loadProc;
MameExeRomAuditor(QObject *parent = 0);
void audit(int = VERIFY_CURRENT_ROMS);
public slots:
void auditorReadyReadStandardOutput();
void auditorClosed();
private:
QDialog dlgAudit;
QTextBrowser *tbAudit;
};
#endif