mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
BladeRF output server plugins: removed QWidget dependency
This commit is contained in:
parent
4df9aa93ab
commit
36c3c71c73
@ -29,7 +29,6 @@
|
||||
#include "bladerf/devicebladerfshared.h"
|
||||
|
||||
#include "bladerfoutput.h"
|
||||
#include "bladerfoutputgui.h"
|
||||
#include "bladerfoutputthread.h"
|
||||
|
||||
MESSAGE_CLASS_DEFINITION(BladerfOutput::MsgConfigureBladerf, Message)
|
||||
|
@ -15,14 +15,18 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <QtPlugin>
|
||||
#include <QAction>
|
||||
#include <libbladeRF.h>
|
||||
#include "plugin/pluginapi.h"
|
||||
#include "util/simpleserializer.h"
|
||||
#include <device/devicesourceapi.h>
|
||||
|
||||
#include "bladerfoutputplugin.h"
|
||||
|
||||
#ifdef SERVER_MODE
|
||||
#include "bladerfoutput.h"
|
||||
#else
|
||||
#include "bladerfoutputgui.h"
|
||||
#endif
|
||||
|
||||
const PluginDescriptor BladerfOutputPlugin::m_pluginDescriptor = {
|
||||
QString("BladeRF Output"),
|
||||
@ -81,6 +85,15 @@ PluginInterface::SamplingDevices BladerfOutputPlugin::enumSampleSinks()
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef SERVER_MODE
|
||||
PluginInstanceGUI* BladerfOutputPlugin::createSampleSinkPluginInstanceGUI(
|
||||
const QString& sinkId __attribute__((unused)),
|
||||
QWidget **widget __attribute__((unused)),
|
||||
DeviceUISet *deviceUISet __attribute__((unused)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
PluginInstanceGUI* BladerfOutputPlugin::createSampleSinkPluginInstanceGUI(
|
||||
const QString& sinkId,
|
||||
QWidget **widget,
|
||||
@ -97,6 +110,7 @@ PluginInstanceGUI* BladerfOutputPlugin::createSampleSinkPluginInstanceGUI(
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
DeviceSampleSink* BladerfOutputPlugin::createSampleSinkPluginInstanceOutput(const QString& sinkId, DeviceSinkAPI *deviceAPI)
|
||||
{
|
||||
|
@ -63,6 +63,6 @@ target_link_libraries(outputbladerfsrv
|
||||
)
|
||||
endif (BUILD_DEBIAN)
|
||||
|
||||
qt5_use_modules(outputbladerfsrv Core Widgets)
|
||||
qt5_use_modules(outputbladerfsrv Core)
|
||||
|
||||
install(TARGETS outputbladerfsrv DESTINATION lib/pluginssrv/samplesink)
|
||||
|
Loading…
Reference in New Issue
Block a user