libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches
opengd77_satelliteconfig.hh
1#ifndef OPENGD77_SATELLITECONFIG_HH
2#define OPENGD77_SATELLITECONFIG_HH
3
4#include "opengd77base_codeplug.hh"
5#include "opengd77base_satelliteconfig.hh"
6
7
9{
10 Q_OBJECT
11
12public:
14 explicit OpenGD77SatelliteConfig(QObject *parent = nullptr);
15
16 bool isValid() const;
17 void initialize();
18
20 virtual bool encode(SatelliteDatabase *db, const ErrorStack &err=ErrorStack());
21
22public:
24 struct Limit {
26 static constexpr unsigned int satellites() {
28 }
29 };
30
31protected:
33 struct Offset {
35 static constexpr unsigned int satellites() { return 0x000000; }
37 };
38};
39
40#endif // OPENGD77_SATELLITECONFIG_HH
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:43
OpenGD77BaseSatelliteConfig(QObject *parent=nullptr)
Default constructor.
Definition opengd77base_satelliteconfig.cc:10
bool isValid() const
Returns true, if the additional settings element is valid, that should contain the satellite settings...
Definition opengd77_satelliteconfig.cc:13
virtual bool encode(SatelliteDatabase *db, const ErrorStack &err=ErrorStack())
Encodes the given satellite database.
Definition opengd77_satelliteconfig.cc:26
OpenGD77SatelliteConfig(QObject *parent=nullptr)
Default constructor.
Definition opengd77_satelliteconfig.cc:5
void initialize()
Initializes and clears the additional settings element.
Definition opengd77_satelliteconfig.cc:20
A table holding all known satellites.
Definition satellitedatabase.hh:108
static constexpr unsigned int satellites()
The maximum number of satellites.
Definition opengd77base_codeplug.hh:1309
Some limits for the satellite config.
Definition opengd77_satelliteconfig.hh:24
static constexpr unsigned int satellites()
The maximum number of satellites.
Definition opengd77_satelliteconfig.hh:26
Some internal offsets.
Definition opengd77_satelliteconfig.hh:33