summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserver.h
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2013-09-20 15:29:39 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 17:47:15 +0200
commitc231e60cd3aa982b10512c5c23bbca04223ed407 (patch)
treefabf340c905e4237d466f28e17e7dd83e664f804 /src/bluetooth/qbluetoothserver.h
parentac2edceb02a61c1d670312385b1d709417961799 (diff)
Error handling for QBluetoothServer
Task-number: QTBUG-32669 Change-Id: I0f12b19f7989972b7c8305f6e11a95f7f25a281d Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
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;