libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches
channel_extension.hh
1#ifndef CHANNEL_EXTENSION_HH
2#define CHANNEL_EXTENSION_HH
3
4#include "configobject.hh"
5
6
10{
11 Q_OBJECT
12
14 Q_PROPERTY(bool talkaround READ talkaround WRITE enableTalkaround)
15
16protected:
18 explicit ChannelExtension(QObject *parent = nullptr);
19
20
21public:
23 bool talkaround() const;
25 void enableTalkaround(bool enable);
26
27protected:
30};
31
32
33
37{
38 Q_OBJECT
39
41 Q_PROPERTY(bool reverseBurst READ reverseBurst WRITE enableReverseBurst)
42
43public:
45 explicit FMChannelExtension(QObject *parent = nullptr);
46
47 ConfigItem *clone() const override;
48
49
51 bool reverseBurst() const;
53 void enableReverseBurst(bool enable);
54
55protected:
58};
59
60
64{
65 Q_OBJECT
66
70 Q_PROPERTY(bool sms READ sms WRITE enableSMS)
72 Q_PROPERTY(bool smsConfirm READ smsConfirm WRITE enableSMSConfirm)
74 Q_PROPERTY(bool dataConfirm READ dataConfirm WRITE enableDataConfirm)
76 Q_PROPERTY(bool dcdm READ dcdm WRITE enableDCDM)
78 Q_PROPERTY(bool loneWorker READ loneWorker WRITE enableLoneWorker)
79
80public:
82 explicit DMRChannelExtension(QObject *parent=nullptr);
83
84 ConfigItem *clone() const override;
85
87 bool privateCallConfirm() const;
89 void enablePrivateCallConfirm(bool enabled);
90
92 bool sms() const;
94 void enableSMS(bool enable);
95
97 bool smsConfirm() const;
99 void enableSMSConfirm(bool enabled);
100
102 bool dataConfirm() const;
104 void enableDataConfirm(bool enable);
105
107 bool dcdm() const;
109 void enableDCDM(bool enable);
110
112 bool loneWorker() const;
114 void enableLoneWorker(bool enable);
115
116protected:
120 bool _sms;
126 bool _dcdm;
129
130};
131
132
133#endif // CHANNEL_EXTENSION_HH
bool _talkaround
If true, talkaround is enabled.
Definition channel_extension.hh:29
bool talkaround
If true, talkaround is enabled.
Definition channel_extension.hh:14
void enableTalkaround(bool enable)
Enables/disables talkaround.
Definition channel_extension.cc:20
ChannelExtension(QObject *parent=nullptr)
Hidden constructor.
Definition channel_extension.cc:8
ConfigExtension(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1234
ConfigItem(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:158
void enableDataConfirm(bool enable)
Enables/disables the data acknowledgement.
Definition channel_extension.cc:135
bool privateCallConfirm
If true, the call confirmation is enabled.
Definition channel_extension.hh:68
bool _dcdm
If true, the simplex TDMA mode is enabled.
Definition channel_extension.hh:126
DMRChannelExtension(QObject *parent=nullptr)
Default constructor.
Definition channel_extension.cc:68
bool _sms
If true, the SMS reception is enabled.
Definition channel_extension.hh:120
bool _dataConfirm
If true, the data acknowledgement is enabled.
Definition channel_extension.hh:124
bool dataConfirm
If true, the radio will response to received data packages.
Definition channel_extension.hh:74
bool sms
If true, SMS reception is enabled.
Definition channel_extension.hh:70
bool _callConfirm
If true, the call confirmation is enabled.
Definition channel_extension.hh:118
bool dcdm
If true, the simplex DCDM mode is enabled.
Definition channel_extension.hh:76
void enableSMSConfirm(bool enabled)
Enables/disables the SMS confirmation.
Definition channel_extension.cc:121
void enableSMS(bool enable)
Enables/disables SMS reception.
Definition channel_extension.cc:107
void enablePrivateCallConfirm(bool enabled)
Enables/disables the private-call confirmation.
Definition channel_extension.cc:93
ConfigItem * clone() const override
Clones this item.
Definition channel_extension.cc:77
void enableLoneWorker(bool enable)
Enables the lone-worker feature for this channel.
Definition channel_extension.cc:163
void enableDCDM(bool enable)
Enables/disables the simplex DCDM mode.
Definition channel_extension.cc:149
bool loneWorker
If true, the lone-worker feature is enabled for this channel.
Definition channel_extension.hh:78
bool smsConfirm
If true, the SMS confirmation is enabled.
Definition channel_extension.hh:72
bool _loneWorker
If true the lone-worker feature is enabled.
Definition channel_extension.hh:128
bool _smsConfirm
If true, the SMS confirmation is enabled.
Definition channel_extension.hh:122
ConfigItem * clone() const override
Clones this item.
Definition channel_extension.cc:40
bool reverseBurst
If true, the CTCSS phase-reverse burst at the end of transmission is enabled.
Definition channel_extension.hh:41
bool _reverseBurst
If true, the CTCSS phase-reverse burst at the end of transmission is enabled.
Definition channel_extension.hh:57
void enableReverseBurst(bool enable)
Enables/disables the CTCSS phase-reverse burst.
Definition channel_extension.cc:56
FMChannelExtension(QObject *parent=nullptr)
Default constructor.
Definition channel_extension.cc:32