1
0
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:
f4exb 2015-09-03 08:50:07 +02:00
parent 01feb31a9e
commit 5f84e56cf5
3 changed files with 11 additions and 2 deletions

View File

@ -48,6 +48,11 @@ void FCDGui::resetToDefaults()
sendSettings(); sendSettings();
} }
qint64 FCDGui::getCenterFrequency() const
{
return m_settings.centerFrequency;
}
QByteArray FCDGui::serialize() const QByteArray FCDGui::serialize() const
{ {
return m_settings.serialize(); return m_settings.serialize();

View File

@ -23,6 +23,7 @@ public:
QString getName() const; QString getName() const;
void resetToDefaults(); void resetToDefaults();
qint64 getCenterFrequency() const;
QByteArray serialize() const; QByteArray serialize() const;
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);

View File

@ -61,11 +61,14 @@ PluginInterface::SampleSourceDevices FCDPlugin::enumSampleSources()
PluginGUI* FCDPlugin::createSampleSourcePluginGUI(const QString& sourceName, const QByteArray& address) 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); FCDGui* gui = new FCDGui(m_pluginAPI);
m_pluginAPI->setInputGUI(gui); m_pluginAPI->setInputGUI(gui);
return gui; return gui;
} else { }
else
{
return NULL; return NULL;
} }
} }