libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches

A table holding all known satellites. More...

#include <satellitedatabase.hh>

Inheritance diagram for SatelliteDatabase:
Collaboration diagram for SatelliteDatabase:

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 OrbitalElementsDatabaseorbitalElements () const
 Returns the orbital element database.
OrbitalElementsDatabaseorbitalElements ()
 Returns the orbital element database.
const TransponderDatabasetransponders () const
 Returns the transponder database.
TransponderDatabasetransponders ()
 Returns the transponder database.
unsigned int count () const
 Returns the number of configured satellites.
const SatellitegetAt (unsigned int idx) const
 Returns the i-th satellite.
bool setAt (const Satellite &sat, unsigned int idx)
 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.

Detailed Description

A table holding all known satellites.

This table merges oribtal with transponder information.

Member Function Documentation

◆ columnCount()

int SatelliteDatabase::columnCount ( const QModelIndex & parent = QModelIndex()) const

Implements the QAbstractTableModel interface.

Returns the number of columns in the table.

◆ data()

QVariant SatelliteDatabase::data ( const QModelIndex & index,
int role ) const

Implements the QAbstractTableModel interface.

Returns the data for the cell.

◆ flags()

Qt::ItemFlags SatelliteDatabase::flags ( const QModelIndex & index) const

Implements the QAbstractTableModel interface.

Returns some flags for the given cell.

◆ headerData()

QVariant SatelliteDatabase::headerData ( int section,
Qt::Orientation orientation,
int role ) const

Implements the QAbstractTableModel interface.

Returns the header labels.

◆ rowCount()

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.

◆ setData()

bool SatelliteDatabase::setData ( const QModelIndex & index,
const QVariant & value,
int role )

Implements the QAbstractTableModel interface.

Sets the data for a cell.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/satellitedatabase.hh
  • /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/satellitedatabase.cc