libdrmconf 0.12.1
A library to program DMR radios.
|
Encodes a selective call. More...
#include <signaling.hh>
Public Member Functions | |
SelectiveCall () | |
Empty constructor, no selective call defined. | |
SelectiveCall (double ctcssFreq) | |
Constructs a CTCSS sub tone for the specified frequency in Hz. | |
SelectiveCall (unsigned int octalDSCCode, bool inverted) | |
Constructs a DCS code for the specified ocal code and inversion. | |
bool | operator== (const SelectiveCall &other) const |
Comparison operator. | |
bool | operator!= (const SelectiveCall &other) const |
Comparison operator. | |
bool | isInvalid () const |
Returns false , if a selective call is set. | |
bool | isValid () const |
Returns true , if a selective call is set. | |
bool | isCTCSS () const |
Returns true , if a CTCSS sub tone is set. | |
bool | isDCS () const |
Returns true , if a DCS code is set. | |
double | Hz () const |
If a CTCSS sub tone is set, returns the frequency in Hz (floating point). | |
unsigned int | mHz () const |
If a CTCSS sub tone is set, returns the frequency in mHz (integer). | |
unsigned int | binCode () const |
If a DCS code is set, returns the binary code. | |
unsigned int | octalCode () const |
If a DCS code is set, returns the octal code. | |
bool | isInverted () const |
If a DCS code is set, returns the inversion flag. | |
QString | format () const |
Formats the selective call. | |
Static Public Member Functions | |
static SelectiveCall | parseCTCSS (const QString &text) |
Parses a CTCSS frequency. | |
static SelectiveCall | parseDCS (const QString &text) |
Parses a DCS code. | |
static SelectiveCall | fromBinaryDCS (unsigned int code, bool inverted) |
Construct from binary DCS code. | |
static const QVector< SelectiveCall > & | standard () |
Returns a vector of standard selective calls. | |
Protected Types | |
enum class | Type { None , CTCSS , DCS } |
Static Protected Attributes | |
static QVector< SelectiveCall > | _standard |
Encodes a selective call.
This can be CTCSS sub tones or DSC codes.