libdrmconf  0.12.0
A library to program DMR radios.
d878uv2_callsigndb.hh
1 #ifndef D878UV2CALLSIGNDB_HH
2 #define D878UV2CALLSIGNDB_HH
3 
4 #include "d868uv_callsigndb.hh"
5 
22 {
23  Q_OBJECT
24 
25 public:
29 
30 public:
32  explicit D878UV2CallsignDB(QObject *parent=nullptr);
33 
35  bool encode(UserDatabase *db, const Selection &selection=Selection(),
36  const ErrorStack &err=ErrorStack());
37 
38 public:
40  struct Limit : public D868UVCallsignDB::Limit {
42  static constexpr unsigned int entries() { return 500000; }
43  };
44 
45 protected:
47  struct Offset : public D868UVCallsignDB::Offset {
49  static constexpr unsigned int callsigns() { return 0x05500000; }
50  static constexpr unsigned int limits() { return 0x04840000; }
51 
53  };
54 };
55 
56 #endif // D868UVCALLSIGNDB_HH
Represents the base class for entries to the contact indices in all AnyTone codeplugs.
Definition: anytone_codeplug.hh:2912
Controls the selection of callsigns from the UserDatabase to be encoded into the callsign db.
Definition: callsigndb.hh:20
Represents and encodes the binary format for the call-sign database within a AnyTone AT-D868UV radio.
Definition: d868uv_callsigndb.hh:25
Represents and encodes the binary format for the call-sign database within the radio.
Definition: d878uv2_callsigndb.hh:22
D878UV2CallsignDB(QObject *parent=nullptr)
Constructor, does not allocate any memory yet.
Definition: d878uv2_callsigndb.cc:10
D868UVCodeplug::ContactMapElement IndexEntryElement
Same index entry used by the codeplug to map normal digital contacts to an contact index.
Definition: d878uv2_callsigndb.hh:28
bool encode(UserDatabase *db, const Selection &selection=Selection(), const ErrorStack &err=ErrorStack())
Tries to encode as many entries of the given user-database.
Definition: d878uv2_callsigndb.cc:17
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition: errorstack.hh:41
Auto-updating DMR user database.
Definition: userdatabase.hh:23
Some limits for the call-sign DB.
Definition: d868uv_callsigndb.hh:169
Some internal used offsets within the DB.
Definition: d868uv_callsigndb.hh:176
Some limits of the call-sign DB.
Definition: d878uv2_callsigndb.hh:40
static constexpr unsigned int entries()
Specifies the max number of entries in the call-sign DB. *‍/.
Definition: d878uv2_callsigndb.hh:42
Some internal offsets within the call-sign DB.
Definition: d878uv2_callsigndb.hh:47