-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathprocessingthread.h
More file actions
47 lines (39 loc) · 1.18 KB
/
processingthread.h
File metadata and controls
47 lines (39 loc) · 1.18 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
#ifndef PROCESSINGTHREAD_H
#define PROCESSINGTHREAD_H
#include <QThread>
#include <QStringList>
#include "settings.h"
class ProcessingThread : public QThread
{
Q_OBJECT
private:
QStringList *m_files;
QString m_currentFile;
bool m_terminate;
Settings *settings;
bool m_force;
QString mp3gainPath;
void processFileRg(QString fileName);
void processFileZipFix(QString fileName);
void processFileUnzip(QString fileName);
void processFileZip(QString fileName);
void processFileCaseFix(QString fileName);
void processFileCdg2Mp4(QString fileName);
bool convertMp3g2Mp4(QString cdgFile, QString mp3File, QString mp4file);
public:
enum ProcessingType{REPLAY_GAIN=0,UNZIP,ZIP,ZIPFIX,RECOMPRESS,CASEFIX,CDG2MP4,INVALID};
explicit ProcessingThread(ProcessingType type, QObject *parent = 0);
void setFiles(QStringList *files);
void run();
ProcessingType processingType;
signals:
void stateChanged(QString);
void processingFile(QString);
void progressChanged(int);
void processingComplete();
void processingAborted();
void fileProcessed();
public slots:
void stopProcessing();
};
#endif // PROCESSINGTHREAD_H