|
libdrmconf 0.13.3
A library to program DMR radios.
|
A table holding all known satellites. More...
#include <satellitedatabase.hh>


Public Slots | |
| void | update () |
| Triggers a download of the orbital and transponder databases. | |
| void | load () |
| Loads the user-curated satellite database. | |
| bool | save (const ErrorStack &err=ErrorStack()) const |
| Saves the user-curated satellite database. | |
Signals | |
| void | loaded () |
| Gets emitted once the satellites has been loaded. | |
| void | error (const QString &msg) |
| Gets emitted if the loading one of the sources fails. | |
Public Member Functions | |
| SatelliteDatabase (unsigned int updatePeriodDays=7, QObject *parent=nullptr) | |
| Constructs a new satellite database. | |
| const OrbitalElementsDatabase & | orbitalElements () const |
| Returns the orbital element database. | |
| OrbitalElementsDatabase & | orbitalElements () |
| Returns the orbital element database. | |
| const TransponderDatabase & | transponders () const |
| Returns the transponder database. | |
| TransponderDatabase & | transponders () |
| Returns the transponder database. | |
| unsigned int | count () const |
| Returns the number of configured satellites. | |
| const Satellite & | getAt (unsigned int idx) const |
| Returns the i-th satellite. | |
| void | add (const Satellite &sat) |
| Appends a satellite. | |
| bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
| Removes one or more satellites. | |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| Implements the QAbstractTableModel interface. | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| Implements the QAbstractTableModel interface. | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| Implements the QAbstractTableModel interface. | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
| Implements the QAbstractTableModel interface. | |
| QVariant | data (const QModelIndex &index, int role) const |
| Implements the QAbstractTableModel interface. | |
| bool | setData (const QModelIndex &index, const QVariant &value, int role) |
| Implements the QAbstractTableModel interface. | |
A table holding all known satellites.
This table merges oribtal with transponder information.
| int SatelliteDatabase::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Implements the QAbstractTableModel interface.
Returns the number of columns in the table.
| QVariant SatelliteDatabase::data | ( | const QModelIndex & | index, |
| int | role ) const |
Implements the QAbstractTableModel interface.
Returns the data for the cell.
| Qt::ItemFlags SatelliteDatabase::flags | ( | const QModelIndex & | index | ) | const |
Implements the QAbstractTableModel interface.
Returns some flags for the given cell.
| QVariant SatelliteDatabase::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role ) const |
Implements the QAbstractTableModel interface.
Returns the header labels.
| int SatelliteDatabase::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Implements the QAbstractTableModel interface.
Returns the number of rows in the table. That is, the number of satellites.
| bool SatelliteDatabase::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role ) |
Implements the QAbstractTableModel interface.
Sets the data for a cell.