命名规范

This commit is contained in:
2026-07-29 12:30:40 +08:00
parent f5f1bf9cc7
commit 18edce4838
59 changed files with 1690 additions and 1795 deletions
+11 -11
View File
@@ -1,16 +1,16 @@
#ifndef BackEnd_H
#define BackEnd_H
#ifndef Back_End_H
#define Back_End_H
#include <QObject>
#include <QTimer>
#include <QKeyEvent>
class BackEnd : public QObject {
class Back_End : public QObject {
Q_OBJECT
public:
QMap<QString, Qt::Key> mFunctionMap;
QMap<QString, Qt::Key> function_map;
bool match(QKeyEvent* e, const QString& function);
static BackEnd* instance();
static Back_End* instance();
int YsGetAfGain();
void YsSetAfGain(int value);
int YsGetRfGain();
@@ -21,13 +21,13 @@ public:
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);
QString get_audio_file_location();
Back_End(const Back_End&) = delete;
Back_End& operator=(const Back_End&) = delete;
void call_back_data_func(int channel, void *pData, int i_length);
protected:
BackEnd();
~BackEnd() override = default;
Back_End();
~Back_End() override = default;
};
#endif