From 88a96091042c63d9b2d62dedb3a7b9be0f53bf49 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 29 Mar 2015 05:29:49 +0200 Subject: load address from settings --- saltoqd/toqconnection.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'saltoqd/toqconnection.h') diff --git a/saltoqd/toqconnection.h b/saltoqd/toqconnection.h index 0d295e2..4d8ecc6 100644 --- a/saltoqd/toqconnection.h +++ b/saltoqd/toqconnection.h @@ -11,10 +11,10 @@ class ToqConnection : public QObject Q_OBJECT Q_ENUMS(CoreEndpoints) Q_PROPERTY(bool connected READ isConnected NOTIFY connectedChanged) - Q_PROPERTY(QBluetoothAddress address READ address CONSTANT) + Q_PROPERTY(QBluetoothAddress address READ address WRITE setAddress) public: - explicit ToqConnection(const QBluetoothAddress &address, QObject *parent = 0); + explicit ToqConnection(QObject *parent = 0); typedef quint8 Endpoint; @@ -56,6 +56,7 @@ public: bool isConnected() const; QBluetoothAddress address() const; + void setAddress(const QBluetoothAddress &address); quint16 newTransactionId(); -- cgit v1.2.3