1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 17:04:46 -04:00

REST API: config: GET (10): mechanism to deal with device settings API formatting without creating a complete device object. Applied to Airspy input

This commit is contained in:
f4exb
2019-08-03 11:21:46 +02:00
parent ae49f17484
commit 4b493da226
14 changed files with 291 additions and 31 deletions
+11
View File
@@ -31,6 +31,7 @@
class PluginManager;
class ChannelAPI;
class DeviceWebAPIAdapter;
/**
* Adapter between API and objects in sdrbase library
@@ -66,8 +67,18 @@ private:
QMap<QString, ChannelAPI*> m_webAPIChannelAdapters;
};
class WebAPIDeviceAdapters
{
public:
DeviceWebAPIAdapter *getDeviceWebAPIAdapter(const QString& deviceId, const PluginManager *pluginManager);
void flush();
private:
QMap<QString, DeviceWebAPIAdapter*> m_webAPIDeviceAdapters;
};
const PluginManager *m_pluginManager;
WebAPIChannelAdapters m_webAPIChannelAdapters;
WebAPIDeviceAdapters m_webAPIDeviceAdapters;
};
#endif // SDRBASE_WEBAPI_WEBAPIADAPTERBASE_H_