1#ifndef ANYTONEEXTENSION_HH
2#define ANYTONEEXTENSION_HH
4#include "configobject.hh"
5#include "configreference.hh"
19 Q_CLASSINFO(
"IdPrefix",
"af")
21 Q_CLASSINFO(
"frequencyDecription",
22 "Transmit-frequency.")
25 Q_PROPERTY(
Frequency frequency READ frequency WRITE setFrequency)
164 SubToneAndOptSig = 3,
354 AlertType alertType()
const;
356 void setAlertType(AlertType type);
423 bool passAll()
const;
425 void enablePassAll(
bool enable);
428 bool reportPosition()
const;
430 void enableReportPosition(
bool enable);
432 bool reportMicE()
const;
434 void enableReportMicE(
bool enable);
436 bool reportObject()
const;
438 void enableReportObject(
bool enable);
440 bool reportItem()
const;
442 void enableReportItem(
bool enable);
444 bool reportMessage()
const;
446 void enableReportMessage(
bool enable);
448 bool reportWeather()
const;
450 void enableReportWeather(
bool enable);
452 bool reportNMEA()
const;
454 void enableReportNMEA(
bool enable);
456 bool reportStatus()
const;
458 void enableReportStatus(
bool enable);
460 bool reportOther()
const;
462 void enableReportOther(
bool enable);
Represents a list of APRS transmit frequencies.
Definition anytone_extension.hh:59
ConfigItem * allocateChild(const YAML::Node &node, ConfigItem::Context &ctx, const ErrorStack &err)
Allocates a member objects for the given YAML node.
Definition anytone_extension.cc:55
AnytoneAPRSFrequencyList(QObject *parent=nullptr)
Empty constructor.
Definition anytone_extension.cc:48
Represents a reference to an APRS frequency.
Definition anytone_extension.hh:47
AnytoneAPRSFrequencyRef(QObject *parent=nullptr)
Default constructor.
Definition anytone_extension.cc:38
Implements the config representation of an FM APRS frequency.
Definition anytone_extension.hh:16
Frequency _frequency
The transmit frequency.
Definition anytone_extension.hh:40
bool _talkaround
If true, talkaround is enabled.
Definition anytone_extension.hh:127
bool handsFree
If true, the hands-free feature is enabled for this channel.
Definition anytone_extension.hh:82
AnytoneChannelExtension(QObject *parent=nullptr)
Hidden constructor.
Definition anytone_extension.cc:64
void setFrequencyCorrection(int corr)
Sets the frequency correction.
Definition anytone_extension.cc:88
APRSPTT aprsPTT
Specifies if and when the position is send via the associated APRS system, once the PTT is pressed.
Definition anytone_extension.hh:87
bool _handsFree
If true, the hands-free feature is enabled for this channel.
Definition anytone_extension.hh:131
APRSPTT
Possible APRS PTT modes.
Definition anytone_extension.hh:91
void enableTalkaround(bool enable)
Enables/disables talkaround.
Definition anytone_extension.cc:76
int _frequencyCorrection
The frequency correction.
Definition anytone_extension.hh:129
int frequencyCorrection
Holds the frequency correction in some unknown units.
Definition anytone_extension.hh:80
void enableHandsFree(bool enable)
Enables/disables the hands-free feature for this channel.
Definition anytone_extension.cc:100
void setAPRSPTT(APRSPTT mode)
Sets the APRS PTT mode.
Definition anytone_extension.cc:117
APRSPTT _aprsPTT
Holds the APRS PTT mode.
Definition anytone_extension.hh:135
bool talkaround
If true, talkaround is enabled.
Definition anytone_extension.hh:78
AnytoneAPRSFrequencyRef * fmAPRSFrequency
A reference to the FM APRS frequency.
Definition anytone_extension.hh:84
AnytoneAPRSFrequencyRef * _fmAPRSFrequency
A reference to the FM APRS frequency.
Definition anytone_extension.hh:133
Implements the AnyTone contact extension.
Definition anytone_extension.hh:332
void setAlertType(AlertType type)
Sets the alert type for the contact.
Definition anytone_extension.cc:391
Q_INVOKABLE AnytoneContactExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_extension.cc:370
AlertType _alertType
Holds the alert type for the contact.
Definition anytone_extension.hh:360
AlertType
Possible ring-tone types.
Definition anytone_extension.hh:340
AlertType alertType
Overrides the ring flag, allows to set None, Ring and Online.
Definition anytone_extension.hh:336
void enableAdaptiveTDMA(bool enable)
Enables/disables the adaptive TDMA mode.
Definition anytone_extension.cc:303
void enableDataACK(bool enable)
Enables/disables the data acknowledgement.
Definition anytone_extension.cc:279
void enableSMS(bool enable)
Enables/disables SMS reception.
Definition anytone_extension.cc:255
bool _throughMode
If true the through mode is enabled.
Definition anytone_extension.hh:299
bool loneWorker
If true, the lone-worker feature is enabled for this channel.
Definition anytone_extension.hh:240
void enableLoneWorker(bool enable)
Enables the lone-worker feature for this channel.
Definition anytone_extension.cc:315
Q_INVOKABLE AnytoneDMRChannelExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_extension.cc:220
void enableThroughMode(bool enable)
Enables/disables the through mode.
Definition anytone_extension.cc:327
void enableSMSConfirm(bool enabled)
Enables/disables the SMS confirmation.
Definition anytone_extension.cc:267
bool simplexTDMA
If true, the simplex TDMA mode is enabled (aka DCDM).
Definition anytone_extension.hh:234
ConfigItem * clone() const
Clones this item.
Definition anytone_extension.cc:229
bool _smsConfirm
If true, the SMS confirmation is enabled.
Definition anytone_extension.hh:289
void enableSimplexTDMA(bool enable)
Enables/disables the simplex TDMA (DCDM) mode.
Definition anytone_extension.cc:291
bool _simplexTDMA
If true, the simplex TDMA mode is enabled.
Definition anytone_extension.hh:293
bool sms
If true, SMS reception is enabled.
Definition anytone_extension.hh:228
bool _dataACK
If true, the data acknowledgement is enabled.
Definition anytone_extension.hh:291
bool _sms
If true, the SMS reception is enabled.
Definition anytone_extension.hh:287
bool adaptiveTDMA
If true, the adaptive TDMA mode is enabled.
Definition anytone_extension.hh:238
bool callConfirm
If true, the call confirmation is enabled.
Definition anytone_extension.hh:226
bool smsConfirm
If true, the SMS confirmation is enabled.
Definition anytone_extension.hh:230
bool throughMode
If true, the through mode is enabled (what ever that means).
Definition anytone_extension.hh:242
bool dataACK
If true, the radio will response to received data packages.
Definition anytone_extension.hh:232
bool _callConfirm
If true, the call confirmation is enabled.
Definition anytone_extension.hh:285
void enableCallConfirm(bool enabled)
Enables/disables the call confirmation.
Definition anytone_extension.cc:243
bool _adaptiveTDMA
If true, the adaptive TDMA mode is enabled.
Definition anytone_extension.hh:295
bool _loneWorker
If true the lone-worker feature is enabled.
Definition anytone_extension.hh:297
SquelchMode squelchMode
Holds the squelch mode.
Definition anytone_extension.hh:154
bool txCustomCTCSS
If true, the custom CTCSS tone is transmitted.
Definition anytone_extension.hh:150
SquelchMode _squelchMode
Holds the squelch mode.
Definition anytone_extension.hh:213
bool _reverseBurst
If true, the CTCSS phase-reverse burst at the end of transmission is enabled.
Definition anytone_extension.hh:205
void setScramblerFrequency(const Frequency &freq)
Sets the FM scrambler carrier frequency.
Definition anytone_extension.cc:209
void enableRXCustomCTCSS(bool enable)
Enables/disables usage of custom CTCSS frequency for RX.
Definition anytone_extension.cc:163
Frequency _scramblerFrequency
Sets the FM scrambler frequency.
Definition anytone_extension.hh:215
ConfigItem * clone() const
Clones this item.
Definition anytone_extension.cc:137
SquelchMode
Possible squelch mode settings.
Definition anytone_extension.hh:160
void enableTXCustomCTCSS(bool enable)
Enables/disables usage of custom CTCSS frequency for TX.
Definition anytone_extension.cc:174
void setSquelchMode(SquelchMode mode)
Sets the squelch mode.
Definition anytone_extension.cc:197
Q_INVOKABLE AnytoneFMChannelExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_extension.cc:128
bool reverseBurst
If true, the CTCSS phase-reverse burst at the end of transmission is enabled.
Definition anytone_extension.hh:146
void enableReverseBurst(bool enable)
Enables/disables the CTCSS phase-reverse burst.
Definition anytone_extension.cc:151
double customCTCSS
Holds the custom CTCSS tone frequency in Hz.
Definition anytone_extension.hh:152
bool _rxCustomCTCSS
If true, the custom CTCSS tone is used for RX (open squelch).
Definition anytone_extension.hh:207
void setCustomCTCSS(double freq)
Sets the custom CTCSS frequency in Hz.
Definition anytone_extension.cc:185
Frequency scramblerFrequency
If true, the analog scrabler is enabled.
Definition anytone_extension.hh:156
bool _txCustomCTCSS
If true, the custom CTCSS tone is transmitted.
Definition anytone_extension.hh:209
double _customCTCSS
Holds the custom CTCSS tone frequency in Hz.
Definition anytone_extension.hh:211
bool rxCustomCTCSS
If true, the custom CTCSS tone is used for RX (open squelch).
Definition anytone_extension.hh:148
bool _hidden
If true, the zone is hidden in the menu.
Definition anytone_extension.hh:325
void enableHidden(bool enable)
Enables/disables hidden zone.
Definition anytone_extension.cc:359
Q_INVOKABLE AnytoneZoneExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_extension.cc:338
bool hidden
If true, the zone is hidden in the menu.
Definition anytone_extension.hh:310
ConfigExtension(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1108
Parse context for config objects.
Definition configobject.hh:43
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:35
virtual ConfigItem * clone() const =0
Clones this item.
ConfigItem(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:132
ConfigObjectList(const QMetaObject &elementTypes=ConfigItem::staticMetaObject, QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1385
ConfigObjectReference(const QMetaObject &elementType=ConfigObject::staticMetaObject, QObject *parent=nullptr)
Hidden constructor.
Definition configreference.cc:17
ConfigObject(QObject *parent=nullptr)
Specifies the prefix for every ID assigned to every object during serialization.
Definition configobject.cc:1015
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:43
Represents a time interval.
Definition interval.hh:11
Helper type to encode frequencies without any rounding error.
Definition frequency.hh:107