mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -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();
|
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();
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user