SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Public Attributes | List of all members
DeviceUISet::ChannelInstanceRegistration Struct Reference
+ Collaboration diagram for DeviceUISet::ChannelInstanceRegistration:

Public Member Functions

 ChannelInstanceRegistration ()
 
 ChannelInstanceRegistration (const QString &channelName, PluginInstanceGUI *pluginGUI)
 
bool operator< (const ChannelInstanceRegistration &other) const
 

Public Attributes

QString m_channelName
 
PluginInstanceGUIm_gui
 

Detailed Description

Definition at line 85 of file deviceuiset.h.

Constructor & Destructor Documentation

◆ ChannelInstanceRegistration() [1/2]

DeviceUISet::ChannelInstanceRegistration::ChannelInstanceRegistration ( )
inline

Definition at line 90 of file deviceuiset.h.

90  :
91  m_channelName(),
92  m_gui(nullptr)
93  { }

◆ ChannelInstanceRegistration() [2/2]

DeviceUISet::ChannelInstanceRegistration::ChannelInstanceRegistration ( const QString &  channelName,
PluginInstanceGUI pluginGUI 
)
inline

Definition at line 95 of file deviceuiset.h.

95  :
96  m_channelName(channelName),
97  m_gui(pluginGUI)
98  { }

Member Function Documentation

◆ operator<()

bool DeviceUISet::ChannelInstanceRegistration::operator< ( const ChannelInstanceRegistration other) const

Definition at line 338 of file deviceuiset.cpp.

References PluginInstanceGUI::getCenterFrequency(), PluginInstanceGUI::getName(), and m_gui.

339 {
340  if (m_gui && other.m_gui)
341  {
342  if (m_gui->getCenterFrequency() == other.m_gui->getCenterFrequency())
343  {
344  return m_gui->getName() < other.m_gui->getName();
345  }
346  else
347  {
348  return m_gui->getCenterFrequency() < other.m_gui->getCenterFrequency();
349  }
350  }
351  else
352  {
353  return false;
354  }
355 }
virtual qint64 getCenterFrequency() const =0
virtual QString getName() const =0
+ Here is the call graph for this function:

Member Data Documentation

◆ m_channelName

QString DeviceUISet::ChannelInstanceRegistration::m_channelName

Definition at line 87 of file deviceuiset.h.

◆ m_gui

PluginInstanceGUI* DeviceUISet::ChannelInstanceRegistration::m_gui

The documentation for this struct was generated from the following files: