Downloads and updates a database of orbital elements from CelesTrak.
More...
#include <orbitalelementsdatabase.hh>
|
|
void | download () |
| | Starts the download of the orbital elements.
|
|
|
void | loaded () |
| | Gets emitted once the satellite orbitals has been loaded.
|
|
void | error (const QString &msg) |
| | Gets emitted if the loading one of the sources fails.
|
|
| | OrbitalElementsDatabase (bool autoLoad, unsigned int updatePeriodDays=7, QObject *parent=nullptr) |
| | Constructs a orbital element database.
|
|
bool | contains (unsigned int id) const |
| | returns true if the database contains a satellite with the given NORAD id.
|
|
OrbitalElement | getById (unsigned int id) const |
| | Returns the orbital elements for the satellite with the given NORAD id.
|
|
const OrbitalElement & | getAt (unsigned int idx) const |
| | Returns the i-th orbital element.
|
|
OrbitalElement & | getAt (unsigned int idx) |
| | Returns the i-th orbital element.
|
|
unsigned int | dbAge () const |
| | Returns the current age of the cache.
|
|
void | load () |
| | If needed, downloads the database and loads all received orbital elements.
|
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| | Returns the number of elements in the database.
|
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| | Returns the number of columns of the database table.
|
|
QVariant | data (const QModelIndex &index, int role) const |
| | Returns a single cell of the database table.
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
| | Returns a single header of the database table.
|
|
|
bool | load (const QString &filename) |
| | Loads a database from the given filename.
|
Downloads and updates a database of orbital elements from CelesTrak.
◆ OrbitalElementsDatabase()
| OrbitalElementsDatabase::OrbitalElementsDatabase |
( |
bool | autoLoad, |
|
|
unsigned int | updatePeriodDays = 7, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
Constructs a orbital element database.
- Parameters
-
| autoLoad | [in] If true, the database gets downloaded and loaded automatically. |
| updatePeriodDays | [in] Specifies the max age of the local database cache in days. |
| parent | [in] Specifies the QObject parent. |
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/qdmr-0.13.3-build/qdmr-0.13.3/lib/orbitalelementsdatabase.hh
- /builddir/build/BUILD/qdmr-0.13.3-build/qdmr-0.13.3/lib/orbitalelementsdatabase.cc