|
LibDMRConf
0.5.0
A library to program DMR radios.
|
Represents the list of scan lists. More...
#include <scanlist.hh>
Signals | |
| void | modified () |
| Gets modified whenever the list of any of the scanlists gets modified. | |
Public Member Functions | |
| ScanLists (QObject *parent=nullptr) | |
| Constructs an empty list. | |
| int | count () const |
| Returns the number of scanlists. | |
| int | indexOf (ScanList *list) const |
| Returns the index of the scanlist. | |
| void | clear () |
| Clears the list. | |
| ScanList * | scanlist (int idx) const |
| Returns the scanlist at the given index. | |
| bool | addScanList (ScanList *list, int row=-1) |
| Adds a scan list at the given position, if row<0 the scanlist gets appended. | |
| bool | remScanList (int idx) |
| Removes the scanlist at the given position. | |
| bool | remScanList (ScanList *list) |
| Removes the specified scanlist from the list. | |
| bool | moveUp (int row) |
| Moves the scanlist at the given row one up. | |
| bool | moveDown (int row) |
| Moves the scanlist at the given row one down. | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| Implementation of QAbstractListModel, returns the number of scanlists. | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| Implementation of QAbstractListModel, returns the item data at the given index. | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| Implementation of QAbstractListModel, returns the header data at the given section. | |
Protected Slots | |
| void | onScanListDeleted (QObject *obj) |
| Internal callback to handle deleted scanlists. | |
Protected Attributes | |
| QVector< ScanList * > | _scanlists |
| The list of scanlists. | |
Represents the list of scan lists.
1.8.17