Controls the selection of callsigns from the UserDatabase to be encoded into the callsign db.
Definition: callsigndb.hh:20
int64_t _count
Specifies the maximum amount of callsigns to add.
Definition: callsigndb.hh:39
void setCountLimit(size_t n)
Sets the count limit.
Definition: callsigndb.cc:32
Selection(int64_t count=-1)
Constructor.
Definition: callsigndb.cc:7
bool hasCountLimit() const
Returns true if the selection has a limit on the number of callsigns to encode.
Definition: callsigndb.cc:20
void clearCountLimit()
Clears the count limit.
Definition: callsigndb.cc:37
size_t countLimit() const
Returns the limit of callsigns to encode.
Definition: callsigndb.cc:25
Abstract base class of all callsign database implementations.
Definition: callsigndb.hh:14
CallsignDB(QObject *parent=nullptr)
Hidden constructor.
Definition: callsigndb.cc:45
virtual bool encode(UserDatabase *db, const Selection &selection=Selection(), const ErrorStack &err=ErrorStack())=0
Encodes the given user db into the device specific callsign db.
virtual ~CallsignDB()
Destructor.
Definition: callsigndb.cc:51
A collection of images, each consisting of one or more memory sections.
Definition: dfufile.hh:73
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