diff options
Diffstat (limited to 'src/bluetooth/qbluetoothserver.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothserver.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothserver.cpp b/src/bluetooth/qbluetoothserver.cpp index 3cf99bc9..6cb9ba01 100644 --- a/src/bluetooth/qbluetoothserver.cpp +++ b/src/bluetooth/qbluetoothserver.cpp @@ -80,12 +80,34 @@ QT_BEGIN_NAMESPACE */ /*! + \fn void QBluetoothServer::error(QBluetoothServer::Error error) + + This signal is emitted when an \a error occurs. + + \sa error(), QBluetoothServer::Error +*/ + +/*! \fn void QBluetoothServer::close() Closes and resets the listening socket. */ /*! + \enum QBluetoothServer::Error + + This enum describes Bluetooth server error types. + + \value NoError No error. + \value UnknownError An unknown error occurred. + \value PoweredOffError The Bluetooth adapter is powered off. + \value InputOutputError An input output error occurred. + \value ServiceAlreadyRegisteredError The service or port was already registered + \value UnsupportedProtocolError The \l {QBluetoothServiceInfo::Protocol}{Protocol} is not + supported on this platform. +*/ + +/*! \fn bool QBluetoothServer::listen(const QBluetoothAddress &address, quint16 port) Start listening for incoming connections to \a address on \a port. @@ -253,6 +275,16 @@ QBluetoothServiceInfo::Protocol QBluetoothServer::serverType() const return d->serverType; } +/*! + \fn QBluetoothServer::Error QBluetoothServer::error() const + Returns the last error of the QBluetoothServer. +*/ +QBluetoothServer::Error QBluetoothServer::error() const +{ + Q_D(const QBluetoothServer); + return d->m_lastError; +} + #include "moc_qbluetoothserver.cpp" QT_END_NAMESPACE |