summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bluetooth/qbluetoothdeviceinfo.cpp18
-rw-r--r--src/bluetooth/qbluetoothdeviceinfo.h32
-rw-r--r--tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp12
3 files changed, 11 insertions, 51 deletions
diff --git a/src/bluetooth/qbluetoothdeviceinfo.cpp b/src/bluetooth/qbluetoothdeviceinfo.cpp
index 301e043f..7a8e882b 100644
--- a/src/bluetooth/qbluetoothdeviceinfo.cpp
+++ b/src/bluetooth/qbluetoothdeviceinfo.cpp
@@ -500,24 +500,6 @@ QBluetoothDeviceInfo::DataCompleteness QBluetoothDeviceInfo::serviceUuidsComplet
}
/*!
- Sets the manufacturer-specific data returned by Extended Inquiry Responses to \a data.
-*/
-void QBluetoothDeviceInfo::setManufacturerSpecificData(const QByteArray &data)
-{
- Q_UNUSED(data);
-}
-
-/*!
- Returns the manufacturer-specific data. If \a available is not 0, it is set to true if
- manufacturer-specific data is available; otherwise it is set to false.
-*/
-QByteArray QBluetoothDeviceInfo::manufacturerSpecificData(bool *available) const
-{
- Q_UNUSED(available);
- return QByteArray();
-}
-
-/*!
Returns true if the QBluetoothDeviceInfo object is created from cached data.
*/
bool QBluetoothDeviceInfo::isCached() const
diff --git a/src/bluetooth/qbluetoothdeviceinfo.h b/src/bluetooth/qbluetoothdeviceinfo.h
index ab01b406..ee8be191 100644
--- a/src/bluetooth/qbluetoothdeviceinfo.h
+++ b/src/bluetooth/qbluetoothdeviceinfo.h
@@ -66,11 +66,11 @@ public:
WearableDevice = 7,
ToyDevice = 8,
HealthDevice = 9,
- UncategorizedDevice = 31,
+ UncategorizedDevice = 31
};
enum MinorMiscellaneousClass {
- UncategorizedMiscellaneous = 0,
+ UncategorizedMiscellaneous = 0
};
enum MinorComputerClass {
@@ -80,7 +80,7 @@ public:
LaptopComputer = 3,
HandheldClamShellComputer = 4,
HandheldComputer = 5,
- WearableComputer = 6,
+ WearableComputer = 6
};
enum MinorPhoneClass {
@@ -89,7 +89,7 @@ public:
CordlessPhone = 2,
SmartPhone = 3,
WiredModemOrVoiceGatewayPhone = 4,
- CommonIsdnAccessPhone = 5,
+ CommonIsdnAccessPhone = 5
};
enum MinorNetworkClass {
@@ -100,7 +100,7 @@ public:
NetworkLoadFactorFour = 0x20,
NetworkLoadFactorFive = 0x28,
NetworkLoadFactorSix = 0x30,
- NetworkNoService = 0x38,
+ NetworkNoService = 0x38
};
enum MinorAudioVideoClass {
@@ -122,7 +122,7 @@ public:
VideoDisplayAndLoudspeaker = 15,
VideoConferencing = 16,
// reserved = 17,
- GamingDevice = 18,
+ GamingDevice = 18
};
enum MinorPeripheralClass {
@@ -136,7 +136,7 @@ public:
RemoteControlPeripheral = 0x03,
SensingDevicePeripheral = 0x04,
DigitizerTabletPeripheral = 0x05,
- CardReaderPeripheral = 0x06,
+ CardReaderPeripheral = 0x06
};
enum MinorImagingClass {
@@ -153,7 +153,7 @@ public:
WearablePager = 2,
WearableJacket = 3,
WearableHelmet = 4,
- WearableGlasses = 5,
+ WearableGlasses = 5
};
enum MinorToyClass {
@@ -162,7 +162,7 @@ public:
ToyVehicle = 2,
ToyDoll = 3,
ToyController = 4,
- ToyGame = 5,
+ ToyGame = 5
};
enum MinorHealthClass {
@@ -186,14 +186,14 @@ public:
AudioService = 0x0020,
TelephonyService = 0x0040,
InformationService = 0x0080,
- AllServices = 0x07ff,
+ AllServices = 0x07ff
};
Q_DECLARE_FLAGS(ServiceClasses, ServiceClass)
enum DataCompleteness {
DataComplete,
DataIncomplete,
- DataUnavailable,
+ DataUnavailable
};
QBluetoothDeviceInfo();
@@ -220,20 +220,10 @@ public:
qint16 rssi() const;
void setRssi(qint16 signal);
-// bool matchesMinorClass(MinorComputerClass minor) const;
-// bool matchesMinorClass(MinorPhoneClass minor) const;
-// bool matchesMinorClass(MinorNetworkClass minor) const;
-// bool matchesMinorClass(MinorAudioVideoClass minor) const;
-// bool matchesMinorClass(MinorPeripheralClass minor) const;
-// bool matchesMinorClass(MinorImagingClass minor) const;
-
void setServiceUuids(const QList<QBluetoothUuid> &uuids, DataCompleteness completeness);
QList<QBluetoothUuid> serviceUuids(DataCompleteness *completeness = 0) const;
DataCompleteness serviceUuidsCompleteness() const;
- void setManufacturerSpecificData(const QByteArray &data);
- QByteArray manufacturerSpecificData(bool *available = 0) const;
-
protected:
QBluetoothDeviceInfoPrivate *d_ptr;
diff --git a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp
index 64a65348..adc61199 100644
--- a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp
+++ b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp
@@ -73,8 +73,6 @@ private slots:
void tst_serviceUuids();
void tst_cached();
-
- void tst_manufacturerSpecificData();
};
tst_QBluetoothDeviceInfo::tst_QBluetoothDeviceInfo()
@@ -375,16 +373,6 @@ void tst_QBluetoothDeviceInfo::tst_cached()
QVERIFY(!(deviceInfo.isCached()));
}
-void tst_QBluetoothDeviceInfo::tst_manufacturerSpecificData()
-{
- QBluetoothDeviceInfo deviceInfo;
- QByteArray data;
- bool available;
- data = deviceInfo.manufacturerSpecificData(&available);
- // Current API implementation returns only empty QByteArray()
- QCOMPARE(data, QByteArray());
-}
-
QTEST_MAIN(tst_QBluetoothDeviceInfo)
#include "tst_qbluetoothdeviceinfo.moc"