6#ifndef OPENGD77EXTENSION_HH
7#define OPENGD77EXTENSION_HH
9#include <QGeoCoordinate>
10#include "configobject.hh"
20 Q_CLASSINFO(
"description",
"Channel settings for OpenGD77 radios.")
21 Q_CLASSINFO(
"longDescription",
"This extension implements all channel settings specific to radios "
22 "running the OpenGD77 firmware.")
41 enum class TalkerAlias {
42 None, APRS, Text, Both
74 const QGeoCoordinate &
location()
const;
117 Q_CLASSINFO(
"description",
"DMR contact settings for OpenGD77 radios.")
118 Q_CLASSINFO(
"longDescription",
"This extension implements all contact settings specific to radios "
119 "running the OpenGD77 firmware. As the OpenGD77 codeplug is derived from the "
120 "Radioddity GD77 codeplug, all Radioddity extension also apply.")
124 Q_CLASSINFO(
"timeSlotOverrideDescription",
"If set, overrides the channels timeslot.")
125 Q_CLASSINFO(
"timeSlotOverrideLongDescription",
126 "The OpenGD77 firmware allows contacts to override the channel time slot if the "
127 "contact is selected as the current destination contact for that channel. This allows "
128 "to assign a specific time slot to a contact, rather than creating a particular "
129 "channel for that contact that only differs in the time slot.")
161 Q_CLASSINFO(
"description",
"OpenGD77 specific APRS settings.")
165 Q_CLASSINFO(
"locationDescription",
"Allows to set a fixed location being transmitted.")
168 Q_INVOKABLE explicit OpenGD77APRSSystemExtension(QObject *parent=
nullptr);
173 const QGeoCoordinate &
location() const;
ConfigExtension(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1108
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:35
ConfigItem(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:132
bool powerSave() const
Returns true, if power save is enabled for this channel (default: true).
Definition opengd77_extension.cc:59
bool scanAllSkip() const
Returns true if the all-skip flag is set.
Definition opengd77_extension.cc:37
bool _beep
Holds the beep enable flag.
Definition opengd77_extension.hh:98
void enableScanZoneSkip(bool enable)
Enables/disables zone skip.
Definition opengd77_extension.cc:31
void enablePowerSave(bool enable)
Enables power save for this channel.
Definition opengd77_extension.cc:64
bool _zoneSkip
Holds the zone skip flag.
Definition opengd77_extension.hh:94
QString locator() const
Returns the fixed location for this channel.
Definition opengd77_extension.cc:79
TalkerAlias _txTalkerAliasTS2
Holds the talker alias setting for timeslot 2.
Definition opengd77_extension.hh:106
bool beep() const
Returns true if the beep tone is enabled for this channel.
Definition opengd77_extension.cc:48
void setTalkerAliasTS1(TalkerAlias ta)
Sets the talker alias setting for timeslot 1.
Definition opengd77_extension.cc:97
const QGeoCoordinate & location() const
Returns the fixed location for this channel.
Definition opengd77_extension.cc:69
bool scanZoneSkip() const
Returns true if the zone skip flag is set.
Definition opengd77_extension.cc:26
Q_INVOKABLE OpenGD77ChannelExtension(QObject *parent=nullptr)
The zone skip flag.
Definition opengd77_extension.cc:7
void setTalkerAliasTS2(TalkerAlias ta)
Sets the talker alias setting for timeslot 2.
Definition opengd77_extension.cc:108
void enableBeep(bool enable)
Enable beep tone for this channel.
Definition opengd77_extension.cc:53
void enableScanAllSkip(bool enable)
Enables/disables all skip.
Definition opengd77_extension.cc:42
TalkerAlias _txTalkerAliasTS1
Holds the talker alias setting for timeslot 1.
Definition opengd77_extension.hh:104
bool _allSkip
Holds the all skip flag.
Definition opengd77_extension.hh:96
QGeoCoordinate _location
Holds the fixed location.
Definition opengd77_extension.hh:102
TalkerAlias talkerAliasTS2() const
Returns the talker alias setting for timeslot 2.
Definition opengd77_extension.cc:103
void setLocator(const QString &locator)
Sets the fixed location for this channel.
Definition opengd77_extension.cc:86
ConfigItem * clone() const
Clones this item.
Definition opengd77_extension.cc:15
void setLocation(const QGeoCoordinate &loc)
Sets the fixed location for this channel.
Definition opengd77_extension.cc:74
TalkerAlias talkerAliasTS1() const
Returns the talker alias setting for timeslot 1.
Definition opengd77_extension.cc:92
bool _powerSave
Holds the power-save flag.
Definition opengd77_extension.hh:100
TimeSlotOverride timeSlotOverride() const
Returns the time slot override.
Definition opengd77_extension.cc:134
TimeSlotOverride _timeSlotOverride
Holds the time slot override.
Definition opengd77_extension.hh:153
ConfigItem * clone() const
Clones this item.
Definition opengd77_extension.cc:124
TimeSlotOverride
Possible modes of time slot override.
Definition opengd77_extension.hh:133
@ TS2
Override with time slot 2.
Definition opengd77_extension.hh:136
@ None
Do not override time slot.
Definition opengd77_extension.hh:134
@ TS1
Override with time slot 1.
Definition opengd77_extension.hh:135
void setTimeSlotOverride(TimeSlotOverride ts)
Sets the time slot override.
Definition opengd77_extension.cc:138
Q_INVOKABLE OpenGD77ContactExtension(QObject *parent=nullptr)
Constructor.
Definition opengd77_extension.cc:117