50 lines
1.2 KiB
C++
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();
|
|
}; |