Files
airborne_ch4/source/ZZ_PSDK_391/Config/ConfigParser_DJI.h
DESKTOP-4HD0KC3\ZhangZhuo e7d6f4c57b first commit
2024-10-30 15:04:53 +08:00

50 lines
1.2 KiB
C++

#pragma once
#include "pch.h"
#include "ZZ_Types_DJI.h"
using namespace ZZ::Device::DJI;
class ZZ_ConfigParser_M350RTK :public QObject
{
Q_OBJECT
public:
ZZ_ConfigParser_M350RTK(QObject* parent = nullptr);
virtual ~ZZ_ConfigParser_M350RTK();
private:
bool m_bInit;
QSettings* m_pqfM350ConfigFiles[2];
AppRegInfo m_struAppRegInfo;
HardwareInfo m_struHardwareInfo;
SensorPort m_struSensorPortInfo;
public:
private:
int Initialize(QString qstrConfigFolderPath);
int LoadParams();
public:
int GetParams(AppRegInfo& struAppRegInfo, HardwareInfo& struHardwareInfo, SensorPort& struSensorPortInfo);
};
class ZZ_ConfigParser_M300RTK :public QObject
{
Q_OBJECT
public:
ZZ_ConfigParser_M300RTK(QObject* parent = nullptr);
virtual ~ZZ_ConfigParser_M300RTK();
public:
private:
bool m_bInit;
QSettings *m_pqfM300ConfigFiles[3];
AppRegInfo m_struAppRegInfo;
HardwareInfo m_struHardwareInfo;
UIConfig m_struUIConfig;
public:
int GetParams(AppRegInfo &struAppRegInfo, HardwareInfo &struHardwareInfo, UIConfig& struUIConfig);
int UpdateUIConfig(UIConfig struUIConfig);
private:
int Initialize(QString qstrConfigFolderPath);
int LoadParams();
};