Files
Radio/module/radio/BackEnd/BackEnd.h
T
2026-07-23 12:27:07 +08:00

37 lines
881 B
C++

#ifndef BackEnd_H
#define BackEnd_H
#include <QObject>
#include <QTimer>
#include <QKeyEvent>
class BackEnd : public QObject {
Q_OBJECT
public:
QMap<QString, Qt::Key> mFunctionMap;
bool match(QKeyEvent* e, const QString& function);
static BackEnd* instance();
int YsGetAfGain();
void YsSetAfGain(int value);
int YsGetRfGain();
void YsSetRfGain(int value);
qint64 YsGetFreq();
void YsSetFreq(quint64 value);
void YsReceiveFreq(quint64 freq);
void play(const QString& fileName);
QString get_screenshot_save_dir_path();
QString get_screenshot_save_file_name();
QString getAudioFileLocation();
BackEnd(const BackEnd&) = delete;
BackEnd& operator=(const BackEnd&) = delete;
void callBackData_Func(int channel, void *pData, int iLength);
protected:
BackEnd();
~BackEnd() override = default;
};
#endif