LibDMRConf  0.5.0
A library to program DMR radios.
Signals | Public Member Functions | Protected Slots | Protected Attributes | List of all members
ZoneChannelList Class Reference

Represents a list of channels that are part of a zone. More...

#include <zone.hh>

Inheritance diagram for ZoneChannelList:

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.
 
Channelchannel (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.
 

Detailed Description

Represents a list of channels that are part of a zone.


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