|
LibDMRConf
0.5.0
A library to program DMR radios.
|
Represents a list of channels that are part of a zone. More...
#include <zone.hh>
Signals | |
| void | modified () |
| Gets emitted whenever the zone gets modified. | |
Public Member Functions | |
| ZoneChannelList (QObject *parent=nullptr) | |
| Constructs an empty zone channel list. | |
| int | count () const |
| Returns the number of channels within this zone. | |
| void | clear () |
| Clears the zone. | |
| Channel * | channel (int idx) const |
| Returns the channel at the given index. | |
| bool | addChannel (Channel *channel) |
| Appends a channel to the zone. | |
| bool | remChannel (int idx) |
| Removes the channel at the given index from the zone. | |
| bool | remChannel (Channel *channel) |
| Removes the given channel from the zone. | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| Implementation of QAbstractListModel, returns the number of rows. | |
| 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 | onChannelDeleted (QObject *obj) |
| Internal used callback to handle deleted channels. | |
Protected Attributes | |
| QVector< Channel * > | _channels |
| The channel list. | |
Represents a list of channels that are part of a zone.
1.8.17