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

Generic representation of a RX group list. More...

#include <rxgrouplist.hh>

Inheritance diagram for RXGroupList:

Signals

void modified ()
 Gets emitted whenever the group list gets modified.
 

Public Member Functions

 RXGroupList (const QString &name, QObject *parent=nullptr)
 Constructor. More...
 
int count () const
 Returns the number of contacts within the group list.
 
void clear ()
 Resets & clears this group list.
 
const QString & name () const
 Returns the name of this group list.
 
bool setName (const QString &name)
 Sets the name of this group list.
 
DigitalContactcontact (int idx) const
 Returns the contact at the given list index.
 
int addContact (DigitalContact *contact)
 Adds a contect to the list.
 
bool remContact (DigitalContact *contact)
 Removes the given contact from the list.
 
bool remContact (int idx)
 Removes the contact from the list at the given position.
 
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 table 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 onContactDeleted (QObject *obj)
 Internal used callback to handle deleted contacts.
 

Protected Attributes

QString _name
 The group list name.
 
QVector< DigitalContact * > _contacts
 The list of contacts.
 

Detailed Description

Generic representation of a RX group list.

Constructor & Destructor Documentation

◆ RXGroupList()

RXGroupList::RXGroupList ( const QString &  name,
QObject *  parent = nullptr 
)
explicit

Constructor.

Parameters
nameSpecifies the name of the group list.
parentQObject parent instance.

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