4#include "configobject.hh"
5#include "configreference.hh"
7#include "tyt_extensions.hh"
17 Q_CLASSINFO(
"IdPrefix",
"scan")
33 Q_INVOKABLE explicit
ScanList(QObject *parent=
nullptr);
117 explicit ScanLists(QObject *parent =
nullptr);
Represents a list of weak references to channels (analog and digital).
Definition configreference.hh:163
Represents a reference to a channel.
Definition configreference.hh:123
The base class of all channels (analog and digital) of a codeplug configuration.
Definition channel.hh:37
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 * allocateChild(QMetaProperty &prop, const YAML::Node &node, const Context &ctx, const ErrorStack &err=ErrorStack())
Allocates an instance for the given property on the given YAML node.
Definition configobject.cc:542
ConfigItem(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:158
ConfigObjectList(const QMetaObject &elementTypes=ConfigItem::staticMetaObject, QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1511
Base class of all labeled and named objects.
Definition configobject.hh:192
ConfigObject(QObject *parent=nullptr)
Specifies the prefix for every ID assigned to every object during serialization.
Definition configobject.cc:1141
QString name
The name of the object.
Definition configobject.hh:196
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:43
Generic representation of a scan list.
Definition scanlist.hh:15
ConfigItem * clone() const
Clones this item.
Definition scanlist.cc:35
void clear()
Clears the scan list.
Definition scanlist.cc:45
Channel * channel(int idx) const
Returns the channel at the given index.
Definition scanlist.cc:75
ChannelRefList * channels
The list of channels.
Definition scanlist.hh:26
ChannelReference _secondary
The secondary priority channel.
Definition scanlist.hh:100
ChannelReference _primary
The priority channel.
Definition scanlist.hh:98
ChannelReference * secondary
The secondary channel.
Definition scanlist.hh:22
void setSecondaryChannel(Channel *channel)
Sets the secondary priority channel.
Definition scanlist.cc:138
TyTScanListExtension * tytScanListExtension() const
Returns the TyT scan-list extension instance (if set).
Definition scanlist.cc:166
bool remChannel(int idx)
Removes the channel at the given index.
Definition scanlist.cc:88
const ChannelReference * primaryChannelRef() const
Returns the primary channel reference.
Definition scanlist.cc:101
Channel * primaryChannel() const
Returns the priority channel.
Definition scanlist.cc:111
const ChannelReference * secondaryChannelRef() const
Returns the secondary channel reference.
Definition scanlist.cc:123
Channel * revertChannel() const
Returns the TX channel.
Definition scanlist.cc:155
ChannelReference * revert
The revert channel.
Definition scanlist.hh:24
int count() const
Returns the number of channels within the scanlist.
Definition scanlist.cc:65
ChannelRefList _channels
The channel list.
Definition scanlist.hh:96
Q_INVOKABLE ScanList(QObject *parent=nullptr)
Default constructor.
Definition scanlist.cc:8
Channel * secondaryChannel() const
Returns the secondary priority channel.
Definition scanlist.cc:133
ChannelReference * primary
The primaryRef channel.
Definition scanlist.hh:20
void setPrimaryChannel(Channel *channel)
Sets the priority channel.
Definition scanlist.cc:116
ChannelReference _revert
The transmit channel.
Definition scanlist.hh:102
bool contains(Channel *channel) const
Returns true if the given channel is part of this scanlist.
Definition scanlist.cc:70
const ChannelReference * revertChannelRef() const
Returns the revert channel reference.
Definition scanlist.cc:145
int addChannel(Channel *channel, int idx=-1)
Adds a channel to the scan list.
Definition scanlist.cc:80
void setRevertChannel(Channel *channel)
Sets the TX channel.
Definition scanlist.cc:160
TyTScanListExtension * _tyt
TyT scan-list settings extension.
Definition scanlist.hh:104
void setTyTScanListExtension(TyTScanListExtension *tyt)
Sets the TyT scan-list extension.
Definition scanlist.cc:170
TyTScanListExtension * tyt
The TyT scan-list extension.
Definition scanlist.hh:29
int add(ConfigObject *obj, int row=-1, bool unique=true)
Adds an element to the list.
Definition scanlist.cc:198
ScanList * scanlist(int idx) const
Returns the scanlist at the given index.
Definition scanlist.cc:191
ScanLists(QObject *parent=nullptr)
Constructs an empty list.
Definition scanlist.cc:184
Represents device specific scan-list settings for TyT devices.
Definition tyt_extensions.hh:168