diff options
author | Nedim Hadzic <nhadzic@blackberry.com> | 2014-03-03 16:00:19 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-06 13:16:42 +0100 |
commit | 649f3519a15ac5b5181e74b8680fe0a238bb6602 (patch) | |
tree | 9a30593dff95bc569f1cdbb35c84d26a39f033d3 | |
parent | 11bba384354291704f0599a0b381f9365e32de5e (diff) |
Unused error enums removed
Emitting errors is done by QLowEnergyController class.
These enums were not used.
Change-Id: I7883ee16ce67bf6ae06916ae7789efe802c098d6
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
-rw-r--r-- | src/bluetooth/qlowenergycharacteristicinfo.cpp | 10 | ||||
-rw-r--r-- | src/bluetooth/qlowenergycharacteristicinfo.h | 6 | ||||
-rw-r--r-- | src/bluetooth/qlowenergyserviceinfo.cpp | 16 | ||||
-rw-r--r-- | src/bluetooth/qlowenergyserviceinfo.h | 9 |
4 files changed, 0 insertions, 41 deletions
diff --git a/src/bluetooth/qlowenergycharacteristicinfo.cpp b/src/bluetooth/qlowenergycharacteristicinfo.cpp index 948499a4..c70e74b6 100644 --- a/src/bluetooth/qlowenergycharacteristicinfo.cpp +++ b/src/bluetooth/qlowenergycharacteristicinfo.cpp @@ -59,16 +59,6 @@ QT_BEGIN_NAMESPACE */ /*! - \enum QLowEnergyCharacteristicInfo::Error - - This enum describes the type of an error that can appear. - - \value NotificationFail Could not subscribe or could not get notifications from wanted characteristic. - \value NotConnected GATT Service is not connected. - \value UnknownError Unknown error. -*/ - -/*! \enum QLowEnergyCharacteristicInfo::Property This enum describes the properties of a characteristic. diff --git a/src/bluetooth/qlowenergycharacteristicinfo.h b/src/bluetooth/qlowenergycharacteristicinfo.h index e2285c63..b655f4bf 100644 --- a/src/bluetooth/qlowenergycharacteristicinfo.h +++ b/src/bluetooth/qlowenergycharacteristicinfo.h @@ -60,12 +60,6 @@ class Q_BLUETOOTH_EXPORT QLowEnergyCharacteristicInfo friend class QLowEnergyCharacteristicInfoPrivate; public: - enum Error { - NotificationFail = 0x001, - NotConnected = 0x002, - UnknownError = 0x003 - }; - enum Property { Broadcasting = 0x01, Read = 0x02, diff --git a/src/bluetooth/qlowenergyserviceinfo.cpp b/src/bluetooth/qlowenergyserviceinfo.cpp index ca6df923..857cdc25 100644 --- a/src/bluetooth/qlowenergyserviceinfo.cpp +++ b/src/bluetooth/qlowenergyserviceinfo.cpp @@ -70,22 +70,6 @@ QT_BEGIN_NAMESPACE */ /*! - \enum QLowEnergyServiceInfo::Error - - This enum describes the type of an error that can appear. - - \value ConnectionRefused The connection to the service was refused. This can be caused if the device - got turned off or it has a random device address. To solve - the case if device has a random address on linux platform - setRandomAddress() method must be called before connecting. - \value DeviceBusy The device is already connected to another Bluetooth device. - \value InitializationFailed Could not initialize GATT callbacks. - \value MemoryAllocation Could not initialize memory needed for reading GATT characteristics. - \value DisconnectFail Could not disconnect from the service. - \value UnknownError Unknown error. -*/ - -/*! Method for parsing the service name with given \a uuid. * \brief parseUuid * \param uuid diff --git a/src/bluetooth/qlowenergyserviceinfo.h b/src/bluetooth/qlowenergyserviceinfo.h index 14321aeb..2f21ec49 100644 --- a/src/bluetooth/qlowenergyserviceinfo.h +++ b/src/bluetooth/qlowenergyserviceinfo.h @@ -64,15 +64,6 @@ public: IncludedService = 0x00000002 }; - enum Error { - ConnectionRefused = 0x001, - DeviceBusy = 0x002, - InitializationFailed = 0x003, - MemoryAllocation = 0x004, - DisconnectFail = 0x005, - UnknownError = 0x006 - }; - QLowEnergyServiceInfo(); QLowEnergyServiceInfo(const QBluetoothUuid &uuid); QLowEnergyServiceInfo(const QLowEnergyServiceInfo &other); |