-
Notifications
You must be signed in to change notification settings - Fork 0
/
file.h
74 lines (43 loc) · 1.07 KB
/
file.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
73
74
#ifndef FILE_H
#define FILE_H
#include <QObject>
#include <QFile>
#include <QTextStream>
#include <QCollator>
#include <QDebug>
//#include <scan.h>
#include <tune.h>
#include <globals.h>
using namespace std;
class File : public QObject
{
Q_OBJECT
public:
explicit File(QObject *parent = nullptr);
void dab_read_file();
void fm_read_file();
void read_settings_file();
void write_settings_file();
QString set_autoplay;
QString last_played_tuner_type;
QString last_played_freq;
QString last_played_sid;
QString delay_autoplay_fm;
QString delay_autoplay_dab;
//Scan mScan;
Tune mTune;
signals:
public slots:
void dab_write_file();
void dab_fav_write_file();
void fm_write_file();
void fm_fav_write_file();
private:
QStringList sort_list(QStringList list);
QString path_dab = "../.dab.txt";
QString path_dab_fav = "../.dab_fav.txt";
QString path_fm = "../.fm.txt";
QString path_fm_fav = "../.fm_fav.txt";
QString path_settings = "../.dabfm_settings.txt";
};
#endif // FILE_H