|
|
using | Frequency = Radio::Frequency |
|
|
| 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 QString const & | oob () |
| | Get Out Of Band name.
|
|
|
static int constexpr | SortRole = Qt::UserRole |
◆ begin()
| auto Bands::begin |
( |
| ) |
const |
◆ columnCount()
| int Bands::columnCount |
( |
QModelIndex const & | parent = QModelIndex{} | ) |
const |
|
override |
Get number of columns in the model.
- Parameters
-
- Returns
- int
◆ data()
| QVariant Bands::data |
( |
QModelIndex const & | index, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
Get data for the given index and role.
- Parameters
-
- Returns
- QVariant
◆ end()
| auto Bands::end |
( |
| ) |
const |
◆ find() [1/2]
| QString Bands::find |
( |
Frequency | f | ) |
const |
Find the band that contains the given frequency.
- Parameters
-
- Returns
- QString
◆ find() [2/2]
| int Bands::find |
( |
QString const & | band | ) |
const |
Find the row index of the given band name.
- Parameters
-
- 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
◆ flags()
| Qt::ItemFlags Bands::flags |
( |
QModelIndex const & | index = QModelIndex{} | ) |
const |
|
override |
Get item flags for the given index.
- Parameters
-
- 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
-
- 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
-
- Returns
- int
The documentation for this class was generated from the following files: