From 038e0e38f96246848a6b7976690376cedb48140a Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Fri, 3 Oct 2014 17:05:00 +0200 Subject: Port QBluetoothTransferReply to OS X. Implement file transfer using IOBluetoothOBEXSession. - Add OBEX session class and session delegate. - Implement OBEX connect operation. - Aux. function to convert OBEX data into Qt's data types. - Start implementing OBEX put. - Extract a connection ID from response headers (if any?). - OBEX Put (without response/event handler yet). - OBEX Put completed - send the remaining chunks of data (if any). Change the unicode string encoding - byte order. - OBEX change error handling - there can be real errors (OBEX event type == error_type) but also response code can be not something good - handle them both. - Emit all signals and make Qt' btfiletransfer really working now. - Protect a service discovery against the early stop (can be a result of emit serviceDiscovered). - After a file transfer finished (either success or a failure) - disconnect (if connected) OBEX session - to make it possible to send more files. - Implement OBEXPutError + isFinished/isRunning and signals on error. - Add proper 'abort' and 'start' slots. Also emit finished on errors. - If we do not have a file, but just an input stream, generate a _really_ random and unique name, not 'XXXXX' template. Change-Id: Ib6fb35d8e0eb07d71ccd2d7b565bba226bef119c Reviewed-by: Alex Blasche --- src/bluetooth/bluetooth.pro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/bluetooth/bluetooth.pro') diff --git a/src/bluetooth/bluetooth.pro b/src/bluetooth/bluetooth.pro index 16ae481f..e71adeae 100644 --- a/src/bluetooth/bluetooth.pro +++ b/src/bluetooth/bluetooth.pro @@ -153,13 +153,15 @@ config_bluez:qtHaveModule(dbus) { qbluetoothserviceinfo_osx.mm \ qbluetoothservicediscoveryagent_osx.mm \ qbluetoothsocket_osx.mm \ - qbluetoothserver_osx.mm + qbluetoothserver_osx.mm \ + qbluetoothtransferreply_osx.mm SOURCES += \ qlowenergycontroller_p.cpp PRIVATE_HEADERS += qbluetoothsocket_osx_p.h \ - qbluetoothserver_osx_p.h + qbluetoothserver_osx_p.h \ + qbluetoothtransferreply_osx_p.h SOURCES -= qbluetoothdevicediscoveryagent.cpp SOURCES -= qbluetoothserviceinfo.cpp -- cgit v1.2.3