From 5e2426165ce92cac116be95046e0ba16bc7954e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Wed, 28 Oct 2020 12:43:30 +0100 Subject: [PATCH] Add defs compiler flag and extend zigbee adapter properties --- config.pri | 2 +- libnymea-zigbee/zigbeeadapter.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.pri b/config.pri index 8c2f05a..fc4787f 100644 --- a/config.pri +++ b/config.pri @@ -1,6 +1,6 @@ QT += gui serialport sql -QMAKE_CXXFLAGS += -Werror -std=c++11 +QMAKE_CXXFLAGS += -Werror -std=c++11 -z defs QMAKE_LFLAGS += -std=c++11 sourceDir = $$PWD diff --git a/libnymea-zigbee/zigbeeadapter.h b/libnymea-zigbee/zigbeeadapter.h index 974cae0..273e60e 100644 --- a/libnymea-zigbee/zigbeeadapter.h +++ b/libnymea-zigbee/zigbeeadapter.h @@ -39,6 +39,9 @@ class ZigbeeAdapter Q_PROPERTY(QString name READ name) Q_PROPERTY(QString description READ description) Q_PROPERTY(QString systemLocation READ systemLocation) + Q_PROPERTY(bool backendSuggestionAvailable READ backendSuggestionAvailable) + Q_PROPERTY(Zigbee::ZigbeeBackendType suggestedZigbeeBackendType READ suggestedZigbeeBackendType) + Q_PROPERTY(qint32 suggestedBaudRate READ suggestedBaudRate) public: explicit ZigbeeAdapter();