From c95a71f9636464f921be5bbbaf8d3aeb84c06fbc Mon Sep 17 00:00:00 2001 From: Nedim Hadzic Date: Thu, 27 Mar 2014 20:12:27 +0100 Subject: Implemented sending buffer files in QBluetoothTransferReply QNX QTemporaryFile did not work since it created temporary file in the app folder, which was not accessible for sending and sharing the file. Task-number: QTBUG-32742 Change-Id: Icf3f30e800976916d3e82a928d04143757bf9afe Reviewed-by: Alex Blasche --- src/bluetooth/qbluetoothtransferreply_qnx_p.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/bluetooth/qbluetoothtransferreply_qnx_p.h') diff --git a/src/bluetooth/qbluetoothtransferreply_qnx_p.h b/src/bluetooth/qbluetoothtransferreply_qnx_p.h index 4522c8bf..903545c2 100644 --- a/src/bluetooth/qbluetoothtransferreply_qnx_p.h +++ b/src/bluetooth/qbluetoothtransferreply_qnx_p.h @@ -50,11 +50,12 @@ #include "qbluetoothtransferreply.h" -#include #include #include "qnx/ppshelpers_p.h" +QT_FORWARD_DECLARE_CLASS(QFile) + QT_BEGIN_NAMESPACE class Q_BLUETOOTH_EXPORT QBluetoothTransferReplyQnx : public QBluetoothTransferReply @@ -80,7 +81,8 @@ private Q_SLOTS: private: void startOPP(QString filename); - QTemporaryFile *tempfile; + void removeTempFile(); + QFile *tempfile; QIODevice *source; bool m_running; -- cgit v1.2.3