diff options
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index bc2cc1fbf..b10ae9af2 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -126,9 +126,13 @@ public: Q_INVOKABLE int getProductIndex(); Q_INVOKABLE QString getBtAddress(); #if defined(BT_SUPPORT) + struct btPairedDevice { + QBluetoothAddress address; + QString name; + }; void btDeviceDiscovered(const QBluetoothDeviceInfo &device); + void getBluetoothDevices(); #endif - QStringList getBluetoothDevices(); public slots: void applicationStateChanged(Qt::ApplicationState state); @@ -217,6 +221,7 @@ private: #endif #if defined(BT_SUPPORT) + QList<struct btPairedDevice> btPairedDevices; QBluetoothLocalDevice localBtDevice; QBluetoothDeviceDiscoveryAgent *discoveryAgent; struct btVendorProduct { |