-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsavetracks.h
56 lines (42 loc) · 1.22 KB
/
savetracks.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
#ifndef SAVETRACKS_H
#define SAVETRACKS_H
#include <QProcess>
#include <QList>
#include <QHash>
#include <QFile>
#include <QDir>
#include "marks.h"
class SaveTracks : public QObject
{
Q_OBJECT
public:
explicit SaveTracks(QObject *parent = 0);
void SetFile(QFile *newfile) { file = newfile; }
void SetPath(QString newPath) { path = newPath; QDir(path).mkpath(path); }
void SetSoxPath(QString newPath) { soxpath = newPath; }
void SetMarks(Marks *newMarks) { marks = newMarks; }
QList<int> allMarks() { return proclist.keys(); }
signals:
void Finished(int TrackNr);
void Debug(QString text);
public slots:
void SaveTrack(int TrackNr, const QString &fileTitle);
void ReadSettings();
private slots:
void canread();
void finished();
private:
void Start();
void Save(int startmark, int fadein, int fadeout, int endmark, const QString &fileTitle);
void SaveMerged(int startmark, int fadein, int fadeout, int endmark, const QString &fileTitle);
QProcess proc;
Marks *marks;
QFile *file;
QString path;
QString soxpath;
bool isworking;
//QList<int> list;
QHash<int, QStringList> proclist;
QHash<int, QString> fileTitles;
};
#endif // SAVETRACKS_H