summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/osx/osxbt.pri
diff options
context:
space:
mode:
authorTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-09-23 17:18:05 +0200
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-09-26 18:19:54 +0200
commitd66c466a135e4bebc293256f6ca361b287fd9bdb (patch)
tree503ba3d58787adfcc6dca6b3cab16b47bd0c32ae /src/bluetooth/osx/osxbt.pri
parentd1d77c8210ecf7a89a81dad69d21b91e06bf129e (diff)
Port QBluetoothServer to OS X.
Implement QBluetoothServer using IOBluetooth framework. - Add empty (for now) implementation + modify .pro file. - Add a 'socket listener'. Actually, there are no sockets, no 'listen' but I still have to emulate this to make a server work. - Implement (to some degree) QBluetoothServer::listen member functions: on OS X QBluetoothServer::listen(address, port) does not really create a listening socket, it just checks that this port is not busy yet (IOBluetooth can either listen on a port you provide, or can listen on any port, but it can not select some port and listen on it. Only after service registered (with 'invalid' port first) - we have a real channelID or PSM. - Server port - either a "fake" port assigned by QBluetoothServer::listen, or a real port as registered by IOBluetooth. - Update a dependency. - Implement nextPendingConnection. - Implement fake server ports (something similar to Android version), but on OS X these fake ports can later be replaced with real ports. - Service info updates PSM/ChannelID with a real port and also starts a listener. - Unregister a server (dtor, close, etc.) - Do not update a 'fake' port with a real one: it can happen, that a real port is already taken by some 'fake' port and this will break the whole idea of fake ports. Let them be always fake, the real is required only when starting a 'listener'. - With 'fake' server ports '0' is not valid anymore (use serverPort() instead). Change-Id: I44537a35891c6806e58ec874a18bd938d4b41c53 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/osx/osxbt.pri')
-rw-r--r--src/bluetooth/osx/osxbt.pri6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bluetooth/osx/osxbt.pri b/src/bluetooth/osx/osxbt.pri
index 59b928db..c1382484 100644
--- a/src/bluetooth/osx/osxbt.pri
+++ b/src/bluetooth/osx/osxbt.pri
@@ -6,7 +6,8 @@ PRIVATE_HEADERS += osx/osxbtutility_p.h \
osx/osxbtrfcommchannel_p.h \
osx/osxbtl2capchannel_p.h \
osx/osxbtchanneldelegate_p.h \
- osx/osxbtservicerecord_p.h
+ osx/osxbtservicerecord_p.h \
+ osx/osxbtsocketlistener_p.h
OBJECTIVE_SOURCES += osx/osxbtutility.mm \
osx/osxbtdevicepair.mm \
@@ -16,4 +17,5 @@ OBJECTIVE_SOURCES += osx/osxbtutility.mm \
osx/osxbtrfcommchannel.mm \
osx/osxbtl2capchannel.mm \
osx/osxbtchanneldelegate.mm \
- osx/osxbtservicerecord.mm
+ osx/osxbtservicerecord.mm \
+ osx/osxbtsocketlistener.mm