diff options
Diffstat (limited to 'src/bluetooth/qbluetoothsocket.h')
-rw-r--r-- | src/bluetooth/qbluetoothsocket.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/bluetooth/qbluetoothsocket.h b/src/bluetooth/qbluetoothsocket.h index cc580d0b..0cc765cd 100644 --- a/src/bluetooth/qbluetoothsocket.h +++ b/src/bluetooth/qbluetoothsocket.h @@ -58,7 +58,7 @@ class QBluetoothServiceInfo; class Q_BLUETOOTH_EXPORT QBluetoothSocket : public QIODevice { - Q_OBJECT + Q_OBJECT Q_DECLARE_PRIVATE(QBluetoothSocket) friend class QBluetoothServer; @@ -78,11 +78,13 @@ public: enum SocketError { NoSocketError = -2, - UnknownSocketError = QAbstractSocket::UnknownSocketError, - HostNotFoundError = QAbstractSocket::HostNotFoundError, - ServiceNotFoundError = QAbstractSocket::SocketAddressNotAvailableError, - NetworkError = QAbstractSocket::NetworkError, - UnsupportedProtocolError + UnknownSocketError = QAbstractSocket::UnknownSocketError, //-1 + HostNotFoundError = QAbstractSocket::HostNotFoundError, //2 + ServiceNotFoundError = QAbstractSocket::SocketAddressNotAvailableError, //9 + NetworkError = QAbstractSocket::NetworkError, //7 + UnsupportedProtocolError = 8, + OperationError = QAbstractSocket::OperationError //19 + //New enums (independent of QAbstractSocket) should be added from 100 onwards }; explicit QBluetoothSocket(QBluetoothServiceInfo::Protocol socketType, QObject *parent = 0); // create socket of type socketType |