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:
@@ -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_
|
||||
Reference in New Issue
Block a user