3#ifndef QGC_NO_SERIAL_LINK
20 qCDebug(LinkConfigurationLog) <<
this;
27 , _dynamic(copy->isDynamic())
28 , _forwarding(copy->isForwarding())
29 , _autoConnect(copy->isAutoConnect())
30 , _highLatency(copy->isHighLatency())
32 qCDebug(LinkConfigurationLog) <<
this;
34 if (_name.isEmpty()) {
35 qCWarning(LinkConfigurationLog) <<
"Copied configuration has no name";
41 qCDebug(LinkConfigurationLog) <<
this;
47 qCWarning(LinkConfigurationLog) <<
"copyFrom called with null source";
64#ifndef QGC_NO_SERIAL_LINK
98 switch(source->
type()) {
99#ifndef QGC_NO_SERIAL_LINK
139 if (
link.get() != this->link()) {
152 if (dynamic != _dynamic) {
160 if (autoc != _autoConnect) {
161 _autoConnect = autoc;
169 if (hl != _highLatency) {
std::shared_ptr< LinkInterface > SharedLinkInterfacePtr
#define QGC_LOGGING_CATEGORY(name, categoryStr)
Interface holding link specific settings.
std::weak_ptr< LinkInterface > _link
Link currently using this configuration (if any)
@ TypeBluetooth
Bluetooth Link.
virtual LinkType type() const =0
static LinkConfiguration * duplicateSettings(const LinkConfiguration *source)
virtual void copyFrom(const LinkConfiguration *source)
bool isAutoConnect() const
void setDynamic(bool dynamic=true)
Set if this is this a dynamic configuration. (decided at runtime)
void setHighLatency(bool hl=false)
Set if this is this an High Latency configuration.
static LinkConfiguration * createSettings(int type, const QString &name)
void setForwarding(bool forwarding=true)
Set if this is this a forwarding link configuration. (decided at runtime)
LinkInterface * link() const
void autoConnectChanged()
void highLatencyChanged()
void nameChanged(const QString &name)
void setName(const QString &name)
virtual ~LinkConfiguration()
void setLink(const std::shared_ptr< LinkInterface > link)
bool isForwarding() const
bool isHighLatency() const
LinkConfiguration(const QString &name, QObject *parent=nullptr)
void setAutoConnect(bool autoc=true)
Set if this is this an Auto Connect configuration.