1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-09 09:25:07 -04:00

REST API: config: PUT (4): mapper work and rework

This commit is contained in:
f4exb
2019-08-07 00:27:34 +02:00
parent 4157f64297
commit d4dacaf84d
9 changed files with 440 additions and 758 deletions
File diff suppressed because it is too large Load Diff
+15 -3
View File
@@ -101,7 +101,7 @@ private:
bool appendPresetChannelKeys(
SWGSDRangel::SWGChannelConfig *channel,
const QJsonObject& channelJson,
const QJsonObject& channelSettngsJson,
WebAPIAdapterInterface::ChannelKeys& channelKeys
);
@@ -114,8 +114,15 @@ private:
bool appendPresetDeviceKeys(
SWGSDRangel::SWGDeviceConfig *device,
const QJsonObject& deviceJson,
WebAPIAdapterInterface::DeviceKeys& deviceKeys
const QJsonObject& deviceSettngsJson,
WebAPIAdapterInterface::DeviceKeys& devicelKeys
);
bool getDevice(
const QString& deviceSettingsKey,
SWGSDRangel::SWGDeviceSettings *deviceSettings,
const QJsonObject& deviceSettingsJson,
QStringList& deviceSettingsKeys
);
void appendSettingsSubKeys(
@@ -139,6 +146,11 @@ private:
void resetAudioOutputDevice(SWGSDRangel::SWGAudioOutputDevice& audioOutputDevice);
static const QMap<QString, QString> m_channelURIToSettingsKey;
static const QMap<QString, QString> m_deviceIdToSettingsKey;
static const QMap<QString, QString> m_channelTypeToSettingsKey;
static const QMap<QString, QString> m_sourceDeviceHwIdToSettingsKey;
static const QMap<QString, QString> m_sinkDeviceHwIdToSettingsKey;
static const QMap<QString, QString> m_mimoDeviceHwIdToSettingsKey;
};
#endif /* SDRBASE_WEBAPI_WEBAPIREQUESTMAPPER_H_ */