4#include "configreference.hh"
5#include <QAbstractTableModel>
6#include "anytone_extension.hh"
7#include "opengd77_extension.hh"
20 Q_CLASSINFO(
"IdPrefix",
"aprs")
35 QObject *parent=
nullptr);
93 QObject *parent =
nullptr);
170 PoliceStation = (
PRIMARY_TABLE | 0), None, Digipeater, Phone, DXCluster, HFGateway, SmallPlane,
171 MobileSatelliteStation, WheelChair, Snowmobile, RedCross, BoyScout, Home, X, RedDot,
172 Circle0, Circle1, Circle2, Circle3, Circle4, Circle5, Circle6, Circle7, Circle8, Circle9,
173 Fire, Campground, Motorcycle, RailEngine, Car, FileServer, HCFuture, AidStation, BBS, Canoe,
175 Logon, MacOS, NTSStation, Balloon, PoliceCar, TBD, RV, Shuttle, SSTV, Bus, ATV, WXService, Helo,
176 Yacht, Windows, Jogger, Triangle, PBBS, LargePlane, WXStation, DishAntenna, Ambulance, Bike,
177 ICP, FireStation, Horse, FireTruck, Glider, Hospital, IOTA, Jeep, SmallTruck, Laptop, MicE,
178 Node, EOC, Rover, Grid, Antenna, PowerBoat, TruckStop, TruckLarge, Van, Water, XAPRS, Yagi,
185 Q_INVOKABLE
explicit FMAPRSSystem(QObject *parent=
nullptr);
202 const QString &src,
unsigned srcSSID,
const QString &path=
"", Icon icon=Icon::Jogger,
204 QObject *parent=
nullptr);
211 bool hasRevertChannel()
const;
215 void setRevertChannel(
FMChannel *revertChannel);
217 void resetRevertChannel();
225 const QString &destination()
const;
227 unsigned destSSID()
const;
229 void setDestination(
const QString &call,
unsigned ssid);
231 void setDestination(
const QString &call);
233 void setDestSSID(
unsigned ssid);
236 const QString &source()
const;
238 unsigned srcSSID()
const;
240 void setSource(
const QString &call,
unsigned ssid);
242 void setSource(
const QString &call);
244 void setSrcSSID(
unsigned ssid);
247 const QString &path()
const;
249 void setPath(
const QString &path);
254 void setIcon(Icon icon);
257 const QString &message()
const;
259 void setMessage(
const QString &msg);
Parse context for config objects.
Definition configobject.hh:43
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:35
virtual bool copy(const ConfigItem &other)
Copies the given item into this one.
Definition configobject.cc:165
virtual ConfigItem * clone() const =0
Clones this item.
virtual YAML::Node serialize(const Context &context, const ErrorStack &err=ErrorStack())
Recursively serializes the configuration to YAML nodes.
Definition configobject.cc:405
ConfigItem(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:158
ConfigObjectList(const QMetaObject &elementTypes=ConfigItem::staticMetaObject, QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1521
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:1151
QString name
The name of the object.
Definition configobject.hh:196
The config class, representing the codeplug configuration.
Definition config.hh:70
Implements a reference to a DMR channel.
Definition configreference.hh:151
Extension to the DigitalChannel class to implement an DMR channel.
Definition channel.hh:411
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:43
Implements a reference to a FM channel.
Definition configreference.hh:163
Extension to the AnalogChannel class to implement an analog FM channel.
Definition channel.hh:258
Represents a time interval.
Definition interval.hh:11
static constexpr Interval fromMinutes(unsigned long long min)
Definition interval.hh:79
Base class of the position reporting systems, that is APRS and DMR position reporting system.
Definition gpssystem.hh:18
bool link(const YAML::Node &node, const Context &ctx, const ErrorStack &err=ErrorStack())
Links the given object to the rest of the codeplug using the given context.
Definition gpssystem.cc:89
bool parse(const YAML::Node &node, Context &ctx, const ErrorStack &err=ErrorStack())
Parses the given YAML node, updates the given object and updates the given context (IDs).
Definition gpssystem.cc:63
Interval _period
Holds the update period in seconds.
Definition gpssystem.hh:63
bool populate(YAML::Node &node, const ConfigItem::Context &context, const ErrorStack &err=ErrorStack())
Recursively serializes the configuration to YAML nodes.
Definition gpssystem.cc:52
void disablePeriod()
Disable update period.
Definition gpssystem.cc:47
void onReferenceModified()
Gets called, whenever a reference is modified.
Definition gpssystem.cc:94
Interval period
The update period in seconds.
Definition gpssystem.hh:23
void setPeriod(const Interval &period)
Sets the update period in seconds.
Definition gpssystem.cc:39
PositionReportingSystem(QObject *parent=nullptr)
Default constructor.
Definition gpssystem.cc:11
bool periodDisabled() const
Returns true, if the period is disabled.
Definition gpssystem.cc:29
PositionReportingSystems(QObject *parent=nullptr)
Constructs an empty list of GPS systems.
Definition gpssystem.cc:538
PositionReportingSystem * system(int idx) const
Returns the positioning system at the specified index.
Definition gpssystem.cc:545
ConfigItem * allocateChild(const YAML::Node &node, ConfigItem::Context &ctx, const ErrorStack &err=ErrorStack())
Allocates a member objects for the given YAML node.
Definition gpssystem.cc:559
int add(ConfigObject *obj, int row=-1, bool unique=true)
Adds an element to the list.
Definition gpssystem.cc:552