Index: sources/model/settings/MBluetooth.h =================================================================== diff -u -re4a0e2fc4c7ae0cbce0d670772276bf7f5ff3845 -rb252cd2777aadbce2d04aa32cc275f193de0cf52 --- sources/model/settings/MBluetooth.h (.../MBluetooth.h) (revision e4a0e2fc4c7ae0cbce0d670772276bf7f5ff3845) +++ sources/model/settings/MBluetooth.h (.../MBluetooth.h) (revision b252cd2777aadbce2d04aa32cc275f193de0cf52) @@ -16,7 +16,7 @@ // Qt #include -#include +#include // Project #include "main.h" // Doxygen : do not remove @@ -76,6 +76,20 @@ }; Q_ENUM(InterfaceStates) + struct BluetoothDevice { + QString addr = ""; + QString name = ""; + bool pair = 0; + bool operator ==(const BluetoothDevice &vDevice) const { + return vDevice.addr == addr && + vDevice.name == name && + vDevice.pair == pair ; + } + QString toString() const { + return addr + "," + pair + "," + name; + } + }; + InterfaceStates state ; QString localAddr = ""; QString localName = ""; @@ -117,4 +131,6 @@ }; } -typedef Model::MBluetooth BluetoothData; +typedef Model::MBluetooth BluetoothData; +typedef Model::MBluetooth::BluetoothDevice BluetoothDeviceData; +typedef QList BluetoothDeviceListData;