3#ifndef QGC_NO_SERIAL_LINK
20 qCDebug(LinkConfigurationLog) <<
this;
27 , _dynamic(copy->isDynamic())
28 , _autoConnect(copy->isAutoConnect())
29 , _highLatency(copy->isHighLatency())
31 qCDebug(LinkConfigurationLog) <<
this;
33 Q_ASSERT(!_name.isEmpty());
38 qCDebug(LinkConfigurationLog) <<
this;
57#ifndef QGC_NO_SERIAL_LINK
91 switch(source->
type()) {
92#ifndef QGC_NO_SERIAL_LINK
132 if (
link.get() != this->link()) {
144 if (dynamic != _dynamic) {
152 if (autoc != _autoConnect) {
153 _autoConnect = autoc;
160 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)
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 isHighLatency() const
LinkConfiguration(const QString &name, QObject *parent=nullptr)
virtual void setAutoConnect(bool autoc=true)
Set if this is this an Auto Connect configuration.