diff options
author | Nedim Hadzic <nhadzic@blackberry.com> | 2014-03-27 20:12:27 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-03 12:12:09 +0200 |
commit | c95a71f9636464f921be5bbbaf8d3aeb84c06fbc (patch) | |
tree | 04137a03eb2904e7680d97482cc15c302c9deeb2 /src/bluetooth/qbluetoothtransferreply_qnx_p.h | |
parent | 1b256167372734a5b84b5f657cf9d99c5128e505 (diff) |
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 <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothtransferreply_qnx_p.h')
-rw-r--r-- | src/bluetooth/qbluetoothtransferreply_qnx_p.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 <QTemporaryFile> #include <QSocketNotifier> #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; |