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

Represents the list of RX group lists within the generic configuration. More...

#include <rxgrouplist.hh>

Inheritance diagram for RXGroupLists:

Signals

void modified ()
 Gets emitted whenever a RX group list gets modified.
 

Public Member Functions

 RXGroupLists (QObject *parent=nullptr)
 Constructor.
 
int count () const
 Returns the number of RX group lists.
 
void clear ()
 Clears the list.
 
int indexOf (RXGroupList *list) const
 Returns the index of the given RX group list.
 
RXGroupListlist (int idx) const
 Returns the list at the given index.
 
int addList (RXGroupList *list, int row=-1)
 Adds a rx group list at the given position. More...
 
bool remList (RXGroupList *list)
 Removes the given rx group list.
 
bool remList (int idx)
 Removes the rx group list at the specified index.
 
bool moveUp (int row)
 Moves the group list at the given row one up.
 
bool moveDown (int row)
 Moves the group list at the given row one down.
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 Implements the QAbstractListModel, returns the number of rows.
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 Implements the QAbstractListModel, returns entry data at the given index.
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 Implements the QAbstractListModel, returns header data at the given section.
 

Protected Slots

void onListDeleted (QObject *)
 Internal used callback to handle deleted RX group lists.
 

Protected Attributes

QVector< RXGroupList * > _lists
 Just the list of RX group lists.
 

Detailed Description

Represents the list of RX group lists within the generic configuration.

Member Function Documentation

◆ addList()

int RXGroupLists::addList ( RXGroupList list,
int  row = -1 
)

Adds a rx group list at the given position.

If row<0, the list gets appended.


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