JS8Call-Improved master
Loading...
Searching...
No Matches
Bands Class Referencefinal
Inheritance diagram for Bands:
Collaboration diagram for Bands:

Classes

class  const_iterator

Public Types

using Frequency = Radio::Frequency

Public Member Functions

 Bands (QObject *parent=nullptr)
QString find (Frequency) const
 Find the band that contains the given frequency.
int find (QString const &) const
 Find the row index of the given band name.
bool findFreq (QString const &band, Radio::Frequency *pFreqLower, Radio::Frequency *pFreqHigher) const
 Find the frequency bounds for the given band name.
const_iterator begin () const
 Get begin iterator.
const_iterator end () const
 Get end iterator.
int rowCount (QModelIndex const &parent=QModelIndex{}) const override
 Get number of rows in the model.
int columnCount (QModelIndex const &parent=QModelIndex{}) const override
 Get number of columns in the model.
Qt::ItemFlags flags (QModelIndex const &=QModelIndex{}) const override
 Get item flags for the given index.
QVariant headerData (int section, Qt::Orientation, int=Qt::DisplayRole) const override
 Get header data for the given section, orientation, and role.
QVariant data (QModelIndex const &, int role=Qt::DisplayRole) const override
 Get data for the given index and role.

Static Public Member Functions

static QString const & oob ()
 Get Out Of Band name.

Static Public Attributes

static int constexpr SortRole = Qt::UserRole

Member Function Documentation

◆ begin()

auto Bands::begin ( ) const

Get begin iterator.

Returns
Bands::const_iterator

◆ columnCount()

int Bands::columnCount ( QModelIndex const & parent = QModelIndex{}) const
override

Get number of columns in the model.

Parameters
parent
Returns
int

◆ data()

QVariant Bands::data ( QModelIndex const & index,
int role = Qt::DisplayRole ) const
override

Get data for the given index and role.

Parameters
index
role
Returns
QVariant

◆ end()

auto Bands::end ( ) const

Get end iterator.

Returns
Bands::const_iterator

◆ find() [1/2]

QString Bands::find ( Frequency f) const

Find the band that contains the given frequency.

Parameters
f
Returns
QString
Here is the caller graph for this function:

◆ find() [2/2]

int Bands::find ( QString const & band) const

Find the row index of the given band name.

Parameters
band
Returns
int

◆ findFreq()

bool Bands::findFreq ( QString const & band,
Radio::Frequency * pFreqLower,
Radio::Frequency * pFreqHigher ) const

Find the frequency bounds for the given band name.

Parameters
band
pFreqLower
pFreqHigher
Returns
true if band found, false otherwise
Here is the call graph for this function:

◆ flags()

Qt::ItemFlags Bands::flags ( QModelIndex const & index = QModelIndex{}) const
override

Get item flags for the given index.

Parameters
index
Returns
Qt::ItemFlags

◆ headerData()

QVariant Bands::headerData ( int section,
Qt::Orientation orientation,
int role = Qt::DisplayRole ) const
override

Get header data for the given section, orientation, and role.

Parameters
section
orientation
role
Returns
QVariant

◆ oob()

QString const & Bands::oob ( )
static

Get Out Of Band name.

Returns
QString const&

◆ rowCount()

int Bands::rowCount ( QModelIndex const & parent = QModelIndex{}) const
override

Get number of rows in the model.

Parameters
parent
Returns
int

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