1#ifndef OPENGD77BASECALLSIGNDB_HH
2#define OPENGD77BASECALLSIGNDB_HH
4#include "callsigndb.hh"
5#include "userdatabase.hh"
28 uint32_t getNumber()
const;
30 void setNumber(uint32_t number);
33 QString getName()
const;
36 void setName(
const QString &name);
59 void setSize(
unsigned n);
77 static constexpr unsigned int blockSize() {
return 32; }
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 all call-sign databases within OpenGD77 radios.
Definition opengd77base_callsigndb.hh:10
virtual ~OpenGD77BaseCallsignDB()
Destructor.
Definition opengd77base_callsigndb.cc:79
OpenGD77BaseCallsignDB(QObject *parent=nullptr)
Constructor.
Definition opengd77base_callsigndb.cc:73
virtual bool encode(UserDatabase *calldb, const Selection &selection=Selection(), const ErrorStack &err=ErrorStack())=0
Encodes as many entries as possible of the given user-database.
Represents the user information within the UserDatabase.
Definition userdatabase.hh:28
Auto-updating DMR user database.
Definition userdatabase.hh:23
Some limits for this callsign DB.
Definition opengd77base_callsigndb.hh:75
static constexpr unsigned int blockSize()
Maximum block size.
Definition opengd77base_callsigndb.hh:77
Represents a user-db entry within the binary codeplug.
Definition opengd77base_callsigndb.hh:18
uint32_t number
DMR ID stored in BCD little-endian.
Definition opengd77base_callsigndb.hh:19
Represents the binary call-sign database header.
Definition opengd77base_callsigndb.hh:47
uint8_t size
Fixed to 0x5d for 15 byte names.
Definition opengd77base_callsigndb.hh:49
uint8_t unused6
Unused, set to 0x00.
Definition opengd77base_callsigndb.hh:51
uint32_t count
Number of contacts in DB, 32bit little-endian.
Definition opengd77base_callsigndb.hh:52