summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qbluetoothserver.h')
-rw-r--r--src/bluetooth/qbluetoothserver.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothserver.h b/src/bluetooth/qbluetoothserver.h
index ad651667..d4468cb6 100644
--- a/src/bluetooth/qbluetoothserver.h
+++ b/src/bluetooth/qbluetoothserver.h
@@ -62,6 +62,14 @@ class Q_BLUETOOTH_EXPORT QBluetoothServer : public QObject
Q_OBJECT
public:
+ enum Error {
+ NoError,
+ UnknownError,
+ PoweredOffError,
+ InputOutputError,
+ ServiceAlreadyRegisteredError,
+ UnsupportedProtocolError
+ };
QBluetoothServer(QBluetoothServiceInfo::Protocol serverType, QObject *parent = 0);
~QBluetoothServer();
@@ -85,8 +93,11 @@ public:
QBluetoothServiceInfo::Protocol serverType() const;
+ Error error() const;
+
Q_SIGNALS:
void newConnection();
+ void error(Error);
protected:
QBluetoothServerPrivate *d_ptr;