libdrmconf 0.12.1
A library to program DMR radios.
Loading...
Searching...
No Matches
opengd77_callsigndb.hh
1#ifndef OPENGD77CALLSIGNDB_HH
2#define OPENGD77CALLSIGNDB_HH
3
4#include "opengd77base_callsigndb.hh"
5#include "userdatabase.hh"
6
20{
21 Q_OBJECT
22
23public:
25 explicit OpenGD77CallsignDB(QObject *parent=nullptr);
26
28 bool encode(UserDatabase *calldb, const Selection &selection=Selection(),
29 const ErrorStack &err=ErrorStack());
30
31public:
33
34 };
35
36protected:
37 struct Offset {
38 static constexpr unsigned int callsignDB() { return 0x30000; }
39 };
40};
41
42#endif // OPENGD77CALLSIGNDB_HH
Controls the selection of callsigns from the UserDatabase to be encoded into the callsign db.
Definition callsigndb.hh:20
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:41
Represents and encodes the binary format for all call-sign databases within OpenGD77 radios.
Definition opengd77base_callsigndb.hh:10
Represents and encodes the binary format for the call-sign database within the radio.
Definition opengd77_callsigndb.hh:20
bool encode(UserDatabase *calldb, const Selection &selection=Selection(), const ErrorStack &err=ErrorStack())
Encodes as many entries as possible of the given user-database.
Definition opengd77_callsigndb.cc:21
OpenGD77CallsignDB(QObject *parent=nullptr)
Constructor.
Definition opengd77_callsigndb.cc:13
Auto-updating DMR user database.
Definition userdatabase.hh:23
Some limits for this callsign DB.
Definition opengd77base_callsigndb.hh:75
Definition opengd77_callsigndb.hh:32
Definition opengd77_callsigndb.hh:37