-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
96 lines (86 loc) · 2.2 KB
/
mainwindow.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QObject>
#include <QDebug>
#include <QTimer>
//#include "Audio.h"
//#include "Audioinput.h"
#include "audioengine.h"
#include "../digihamlib/digihamlib.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
public slots:
void download_file(QString, bool u = false);
void url_downloaded(QString);
void file_downloaded(QString);
private slots:
void do_connect(void);
void updateLog(QString);
void process_audio(void);
void update_status(void);
void updateMicLevel(qreal);
void start_tx(void);
void stop_tx(void);
void discover_devices(void);
void setMicGain(int);
void process_dstar_hosts(QString);
void process_ysf_hosts();
void process_fcs_rooms();
void process_dmr_hosts();
void process_p25_hosts();
void process_nxdn_hosts();
void process_m17_hosts();
void process_dmr_ids();
void process_nxdn_ids();
void process_mode_change(QString);
void micDeviceChanged(int);
void spkrDeviceChanged(int);
void vocoderChanged(int);
void modemChanged(int);
void send_mic_audio(void);
void m17_voice_rate_changed(bool);
private:
void save_settings();
void process_settings();
void check_host_files();
void update_host_files();
void update_custom_hosts(QString);
void update_dmr_ids();
void update_nxdn_ids();
QMap<QString, QString> discover_serial_devices(void);
Ui::MainWindow *ui;
Digihamlib *digihamlib;
// Audio* audio;
// AudioInput* audioinput;
AudioEngine *m_audio;
QAudioDevice audio_device;
QString m_audioin;
QString m_audioout;
QTimer *mtimer;
QTimer *atimer;
bool m_update_host_files;
QSettings *m_settings;
QString config_path;
int m_txtimeout;
bool m_settings_processed;
bool m_mdirect;
int m_tts;
QString m_ttstxt;
QString m_protocol;
QString host;
QStringList m_vocoders;
QStringList m_modems;
QString m_localhosts;
QTimer *txtimer;
bool isTx;
signals:
};
#endif // MAINWINDOW_H