mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-19 22:28:35 -04:00
Web API: implemented device report interface. Applied to Airspy
This commit is contained in:
@@ -30,6 +30,7 @@ namespace SWGSDRangel
|
||||
{
|
||||
class SWGDeviceSettings;
|
||||
class SWGDeviceState;
|
||||
class SWGDeviceReport;
|
||||
}
|
||||
|
||||
class SDRBASE_API DeviceSampleSource : public QObject {
|
||||
@@ -81,6 +82,11 @@ public:
|
||||
QString& errorMessage)
|
||||
{ errorMessage = "Not implemented"; return 501; }
|
||||
|
||||
virtual int webapiReportGet(
|
||||
SWGSDRangel::SWGDeviceReport& response __attribute__((unused)),
|
||||
QString& errorMessage)
|
||||
{ errorMessage = "Not implemented"; return 501; }
|
||||
|
||||
MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||
virtual void setMessageQueueToGUI(MessageQueue *queue) = 0; // pure virtual so that child classes must have to deal with this
|
||||
MessageQueue *getMessageQueueToGUI() { return m_guiMessageQueue; }
|
||||
|
||||
Reference in New Issue
Block a user