1#ifndef OPENUV380CALLSIGNDB_HH
2#define OPENUV380CALLSIGNDB_HH
4#include "opengd77base_callsigndb.hh"
5#include "userdatabase.hh"
31 static constexpr unsigned int size() {
return 0x001b; }
33 void clear()
override;
36 void setText(
const QString &text)
override;
40 struct Limit:
public Element::Limit {
42 static constexpr unsigned int textLength() {
return 32; }
51 static constexpr unsigned int size0() {
return 0x040000; }
52 static constexpr unsigned int size1() {
return 0xd28000; }
56 const ErrorStack &err=ErrorStack());
69 static constexpr unsigned int entries() {
78 static constexpr unsigned int header() {
return 0x050000; }
79 static constexpr unsigned int entries0() {
return header() + DatabaseHeaderElement::size(); }
80 static constexpr unsigned int entries1() {
return 0x0d8000; }
Controls the selection of callsigns from the UserDatabase to be encoded into the callsign db.
Definition callsigndb.hh:22
Represents a single encoded database entry.
Definition opengd77base_callsigndb.hh:45
OpenGD77BaseCallsignDB(QObject *parent=nullptr)
Constructor.
Definition opengd77base_callsigndb.cc:142
DatabaseEntryElement(uint8_t *ptr)
Constructor.
Definition openuv380_callsigndb.cc:11
static constexpr unsigned int size()
The size of the entry.
Definition openuv380_callsigndb.hh:31
void setText(const QString &text) override
Encodes the text.
Definition openuv380_callsigndb.cc:23
void clear() override
Abstract method to reset the element within the codeplug.
Definition openuv380_callsigndb.cc:18
OpenUV380CallsignDB(bool extended, QObject *parent=nullptr)
Constructor.
Definition openuv380_callsigndb.cc:34
bool encode(UserDatabase *calldb, const Flags &selection=Flags(), const ErrorStack &err=ErrorStack())
Encodes as many entries as possible of the given user-database.
Definition openuv380_callsigndb.cc:44
Some limits for this callsign DB.
Definition opengd77base_callsigndb.hh:149
Some limits.
Definition openuv380_callsigndb.hh:40
Some limits of the callsign DB.
Definition openuv380_callsigndb.hh:60
static constexpr unsigned int entries1()
Number of entries, segment 1.
Definition openuv380_callsigndb.hh:66
static constexpr unsigned int entries0()
Number of entries, segment 0.
Definition openuv380_callsigndb.hh:62
Some internal offsets within the callsign db.
Definition openuv380_callsigndb.hh:76