1 #ifndef OPENGD77CALLSIGNDB_HH
2 #define OPENGD77CALLSIGNDB_HH
4 #include "callsigndb.hh"
5 #include "userdatabase.hh"
38 uint32_t getNumber()
const;
40 void setNumber(uint32_t number);
43 QString getName()
const;
46 void setName(
const QString &name);
69 void setSize(
unsigned n);
Controls the selection of callsigns from the UserDatabase to be encoded into the callsign db.
Definition: callsigndb.hh:20
Abstract base class of all callsign database implementations.
Definition: callsigndb.hh:14
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition: errorstack.hh:41
Represents and encodes the binary format for the call-sign database within the radio.
Definition: opengd77_callsigndb.hh:20
virtual 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:91
OpenGD77CallsignDB(QObject *parent=nullptr)
Constructor.
Definition: opengd77_callsigndb.cc:80
virtual ~OpenGD77CallsignDB()
Destructor.
Definition: opengd77_callsigndb.cc:86
Represents the user information within the UserDatabase.
Definition: userdatabase.hh:28
Auto-updating DMR user database.
Definition: userdatabase.hh:23
Represents a user-db entry within the binary codeplug.
Definition: opengd77_callsigndb.hh:28
uint32_t number
DMR ID stored in BCD little-endian.
Definition: opengd77_callsigndb.hh:29
Represents the binary call-sign database header.
Definition: opengd77_callsigndb.hh:57
uint8_t size
Fixed to 0x5d for 15 byte names.
Definition: opengd77_callsigndb.hh:59
uint8_t unused6
Unused, set to 0x00.
Definition: opengd77_callsigndb.hh:61
uint32_t count
Number of contacts in DB, 32bit little-endian.
Definition: opengd77_callsigndb.hh:62