4 #include <QAbstractListModel>
5 #include "configreference.hh"
Parse context for config objects.
Definition: configobject.hh:48
Base class for all configuration objects (channels, zones, contacts, etc).
Definition: configobject.hh:40
List class for config objects.
Definition: configobject.hh:325
Base class of all labeled and named objects.
Definition: configobject.hh:188
QString name
The name of the object.
Definition: configobject.hh:192
Represents a list of references to some digital channels.
Definition: configreference.hh:176
Extension to the DigitalChannel class to implement an DMR channel.
Definition: channel.hh:345
Dummy roaming zone class that represents the default roaming zone.
Definition: roaming.hh:69
DefaultRoamingZone(QObject *parent=nullptr)
Hidden constructor.
Definition: roaming.cc:89
static DefaultRoamingZone * _instance
Holds a reference to the singleton instance of this class.
Definition: roaming.hh:83
static DefaultRoamingZone * get()
Returns the singleton instance of this class.
Definition: roaming.cc:96
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition: errorstack.hh:41
Represents the list of roaming zones within the abstract device configuration.
Definition: roaming.hh:91
RoamingZoneList(QObject *parent=nullptr)
Constructor.
Definition: roaming.cc:106
RoamingZone * zone(int idx) const
Returns the roaming zone at the given index.
Definition: roaming.cc:130
QSet< DMRChannel * > uniqueChannels() const
Returns a set of unique channels used in all roaming zones.
Definition: roaming.cc:113
int add(ConfigObject *obj, int row=-1)
Adds an element to the list.
Definition: roaming.cc:137
ConfigItem * allocateChild(const YAML::Node &node, ConfigItem::Context &ctx, const ErrorStack &err=ErrorStack())
Allocates a member objects for the given YAML node.
Definition: roaming.cc:144
Represents a RoamingZone within the abstract device configuration.
Definition: roaming.hh:15
ConfigItem * clone() const
Clones this item.
Definition: roaming.cc:28
DMRChannelRefList * channels()
Returns the list of digital channels in this roaming zone.
void clear()
Clears the zone list.
Definition: roaming.cc:43
DMRChannelRefList * channels
The channels in the roaming zone.
Definition: roaming.hh:19
DMRChannelRefList _channel
Holds the actual channels of the roaming zone.
Definition: roaming.hh:60
RoamingZone(QObject *parent=nullptr)
Default constructor.
Definition: roaming.cc:9
bool remChannel(int row)
Removes the channel from the roaming zone at index row.
Definition: roaming.cc:64
int addChannel(DMRChannel *ch, int row=-1)
Adds a channel to the roaming zone.
Definition: roaming.cc:55
RoamingZone & operator=(const RoamingZone &other)
Copies the given zone.
Definition: roaming.cc:22
int count() const
Returns the number of zones.
Definition: roaming.cc:38
DMRChannel * channel(int idx) const
Returns the digital channel, which is the member at index idx (0-based).
Definition: roaming.cc:48