This repository has been archived by the owner on Dec 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqtcdparanoia.hpp
64 lines (46 loc) · 1.53 KB
/
qtcdparanoia.hpp
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
#ifndef QTCDPARANOIA_HPP
#define QTCDPARANOIA_HPP
#include <QObject>
#include <QJsonObject>
#include <QMap>
#include <QString>
#include <QVariant>
#include "cdio/cdio.h"
class QtCdParanoia : public QObject
{
Q_OBJECT
QString formatTrackNum(int track_num);
QtCdParanoia *qtCdParanoia;
bool cancelImportFlag;
public:
explicit QtCdParanoia(QObject *parent = nullptr);
~QtCdParanoia();
QObject *errorMap;
int disc_id{0};
bool setError(const char *key, const QJsonObject value);
bool setError(const QString key, QByteArray value);
bool setError(const char *key, const char *value);
QJsonObject getError(const char *key);
QString getErrorText(const char *key);
QString getErrorText(const QString key);
QString getErrorDetailedText(const char *key);
QString getErrorDetailedText(const QString key);
const CdIo_t *p_cdio;
void updateWriteStatus(const QString text);
signals:
void errorMessage(const QString text, const QString detailedText);
void driveName(const QString text);
void cddbSearchResult(const QJsonObject result);
void cddbTrackInfo(const QJsonObject result);
void busyIndicator();
void updateStatus(const QString text);
public slots:
bool setError(const QString key, const QJsonObject value);
QJsonObject getError(const QString key);
QString getMusicHome();
void scanForDrive();
void listTracks(const QString category);
void writeTracks(const QJsonObject importData);
void cancelImport();
};
#endif // QTCDPARANOIA_HPP