mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-04 06:54:39 -04:00
REST API: config: GET (4): optimize channel settings API management and generally improve constedness
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#ifndef SDRBASE_WEBAPI_WEBAPIADAPTERBASE_H_
|
||||
#define SDRBASE_WEBAPI_WEBAPIADAPTERBASE_H_
|
||||
|
||||
#include <QMap>
|
||||
|
||||
#include "export.h"
|
||||
#include "SWGPreferences.h"
|
||||
#include "SWGPreset.h"
|
||||
@@ -28,6 +30,7 @@
|
||||
#include "commands/command.h"
|
||||
|
||||
class PluginManager;
|
||||
class ChannelAPI;
|
||||
|
||||
/**
|
||||
* Adapter between API and objects in sdrbase library
|
||||
@@ -54,7 +57,17 @@ public:
|
||||
);
|
||||
|
||||
private:
|
||||
class WebAPIChannelAdapters
|
||||
{
|
||||
public:
|
||||
ChannelAPI *getChannelAPI(const QString& channelURI, const PluginManager *pluginManager);
|
||||
void flush();
|
||||
private:
|
||||
QMap<QString, ChannelAPI*> m_webAPIChannelAdapters;
|
||||
};
|
||||
|
||||
const PluginManager *m_pluginManager;
|
||||
WebAPIChannelAdapters m_webAPIChannelAdapters;
|
||||
};
|
||||
|
||||
#endif // SDRBASE_WEBAPI_WEBAPIADAPTERBASE_H_
|
||||
Reference in New Issue
Block a user