mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
Deep redesign: Better support for FCD dongles #4: Fixed get center frequency from the plugin GUI
This commit is contained in:
parent
01feb31a9e
commit
5f84e56cf5
@ -48,6 +48,11 @@ void FCDGui::resetToDefaults()
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
qint64 FCDGui::getCenterFrequency() const
|
||||
{
|
||||
return m_settings.centerFrequency;
|
||||
}
|
||||
|
||||
QByteArray FCDGui::serialize() const
|
||||
{
|
||||
return m_settings.serialize();
|
||||
|
@ -23,6 +23,7 @@ public:
|
||||
QString getName() const;
|
||||
|
||||
void resetToDefaults();
|
||||
qint64 getCenterFrequency() const;
|
||||
QByteArray serialize() const;
|
||||
bool deserialize(const QByteArray& data);
|
||||
|
||||
|
@ -61,11 +61,14 @@ PluginInterface::SampleSourceDevices FCDPlugin::enumSampleSources()
|
||||
|
||||
PluginGUI* FCDPlugin::createSampleSourcePluginGUI(const QString& sourceName, const QByteArray& address)
|
||||
{
|
||||
if(sourceName == "org.osmocom.sdr.samplesource.fcdpro") {
|
||||
if(sourceName == "org.osmocom.sdr.samplesource.fcdpro")
|
||||
{
|
||||
FCDGui* gui = new FCDGui(m_pluginAPI);
|
||||
m_pluginAPI->setInputGUI(gui);
|
||||
return gui;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user