|
LibDMRConf
0.5.0
A library to program DMR radios.
|
The list of positioning systems. More...
#include <gpssystem.hh>
Signals | |
| void | modified () |
| Gets emitted once the table has been changed. | |
Public Member Functions | |
| PositioningSystems (QObject *parent=nullptr) | |
| Constructs an empty list of GPS systems. | |
| void | clear () |
| Clears the list. | |
| int | count () const |
| Returns the number of Positioning systems in this list. | |
| PositioningSystem * | system (int idx) const |
| Returns the positioning system at the specified index. | |
| int | indexOf (PositioningSystem *sys) const |
| Returns the index of given positioning system. | |
| int | addSystem (PositioningSystem *sys, int row=-1) |
| Adds a positioning system to the list at the specified row. More... | |
| bool | remSystem (PositioningSystem *gps) |
| Removes the given positioning system from the list. | |
| bool | remSystem (int idx) |
| Removes the positioning system at the given index from the list. | |
| int | gpsCount () const |
| Returns the number of defined GPS systems. | |
| int | indexOfGPSSys (GPSSystem *gps) const |
| Returns the index of the GPS System. More... | |
| GPSSystem * | gpsSystem (int idx) const |
| Gets the GPS system at the specified index. More... | |
| int | aprsCount () const |
| Returns the number of defined APRS system. | |
| int | indexOfAPRSSys (APRSSystem *gps) const |
| Returns the index of the specified APRS system. More... | |
| APRSSystem * | aprsSystem (int idx) const |
Returns the APRS system at index idx. More... | |
| bool | moveUp (int idx) |
Moves the GPS system at index idx one step up. | |
| bool | moveDown (int idx) |
Moves the GPS system at index idx one step up. | |
| int | rowCount (const QModelIndex &index) const |
| Implements QAbstractTableModel, returns number of rows. | |
| int | columnCount (const QModelIndex &index) const |
| Implements QAbstractTableModel, returns number of colums. | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| Implements QAbstractTableModel, returns data at cell. | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| Implements QAbstractTableModel, returns header at section. | |
Protected Slots | |
| void | onSystemDeleted (QObject *obj) |
| Internal callback on deleted positioning systems. | |
| void | onSystemEdited () |
| Internal callback on modified positioning systems. | |
Protected Attributes | |
| QVector< PositioningSystem * > | _posSystems |
| Just the vector of positioning systems. | |
The list of positioning systems.
| int PositioningSystems::addSystem | ( | PositioningSystem * | sys, |
| int | row = -1 |
||
| ) |
Adds a positioning system to the list at the specified row.
If row<0 the system gets appendet to the list.
| APRSSystem * PositioningSystems::aprsSystem | ( | int | idx | ) | const |
Returns the APRS system at index idx.
That index is only within all defined APRS systems.
| GPSSystem * PositioningSystems::gpsSystem | ( | int | idx | ) | const |
Gets the GPS system at the specified index.
This index is only within all defined GPS systems.
| int PositioningSystems::indexOfAPRSSys | ( | APRSSystem * | gps | ) | const |
Returns the index of the specified APRS system.
That index is only within all defined APRS systems.
| int PositioningSystems::indexOfGPSSys | ( | GPSSystem * | gps | ) | const |
Returns the index of the GPS System.
This index in only within all defined GPS systems.
1.8.17