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

The list of positioning systems. More...

#include <gpssystem.hh>

Inheritance diagram for PositioningSystems:

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.
 
PositioningSystemsystem (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...
 
GPSSystemgpsSystem (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...
 
APRSSystemaprsSystem (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.
 

Detailed Description

The list of positioning systems.

Member Function Documentation

◆ addSystem()

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()

APRSSystem * PositioningSystems::aprsSystem ( int  idx) const

Returns the APRS system at index idx.

That index is only within all defined APRS systems.

◆ gpsSystem()

GPSSystem * PositioningSystems::gpsSystem ( int  idx) const

Gets the GPS system at the specified index.

This index is only within all defined GPS systems.

◆ indexOfAPRSSys()

int PositioningSystems::indexOfAPRSSys ( APRSSystem gps) const

Returns the index of the specified APRS system.

That index is only within all defined APRS systems.

◆ indexOfGPSSys()

int PositioningSystems::indexOfGPSSys ( GPSSystem gps) const

Returns the index of the GPS System.

This index in only within all defined GPS systems.


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