1#ifndef SATELLITEDATABASE_HH
2#define SATELLITEDATABASE_HH
4#include "errorstack.hh"
7#include "transponderdatabase.hh"
8#include "orbitalelementsdatabase.hh"
21 const QString &name()
const;
22 void setName(
const QString &name);
41 QJsonObject toJson()
const;
68 explicit SatelliteDatabase(
unsigned int updatePeriodDays=7, QObject *parent =
nullptr);
75 unsigned int count()
const;
76 const Satellite &getAt(
unsigned int idx)
const;
78 bool removeRows(
int row,
int count,
const QModelIndex &parent=QModelIndex());
80 Qt::ItemFlags flags(
const QModelIndex &index)
const;
81 int rowCount(
const QModelIndex &parent)
const;
82 int columnCount(
const QModelIndex &parent)
const;
83 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
84 QVariant data(
const QModelIndex &index,
int role)
const;
85 bool setData(
const QModelIndex &index,
const QVariant &value,
int role);
100 QVector<Satellite> _satellites;
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:41
Definition orbitalelementsdatabase.hh:9
Definition orbitalelementsdatabase.hh:91
A table holding all known satellites.
Definition satellitedatabase.hh:64
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.
Definition satellitedatabase.hh:13
Definition transponderdatabase.hh:53
Helper type to encode frequencies without any rounding error.
Definition frequency.hh:11
Encodes a selective call.
Definition signaling.hh:13