summaryrefslogtreecommitdiffstats
path: root/src/connectivity/bluetooth/qbluetoothtransferreply.h
diff options
context:
space:
mode:
authorAndrew Stanley-Jones <andrew.stanley-jones@nokia.com>2010-12-07 11:21:10 +1000
committerAndrew Stanley-Jones <andrew.stanley-jones@nokia.com>2010-12-07 16:31:26 +1000
commit6207463f12ffb73568033b50e74b8966f1633614 (patch)
tree84091f0a4c2bbc88a764e08cfdf2b673c07775b6 /src/connectivity/bluetooth/qbluetoothtransferreply.h
parentf7240de77e9bbe18657df5bcd45d85f17f334408 (diff)
Add error reporting into file transfer, auto tests
Diffstat (limited to 'src/connectivity/bluetooth/qbluetoothtransferreply.h')
-rw-r--r--src/connectivity/bluetooth/qbluetoothtransferreply.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/connectivity/bluetooth/qbluetoothtransferreply.h b/src/connectivity/bluetooth/qbluetoothtransferreply.h
index 575bcf6340..39e27e091e 100644
--- a/src/connectivity/bluetooth/qbluetoothtransferreply.h
+++ b/src/connectivity/bluetooth/qbluetoothtransferreply.h
@@ -56,6 +56,14 @@ class Q_CONNECTIVITY_EXPORT QBluetoothTransferReply : public QIODevice
Q_OBJECT
public:
+ enum TransferError {
+ NoError = 0,
+ UnknownError,
+ FileNotFoundError,
+ HostNotFoundError
+ };
+
+
~QBluetoothTransferReply();
virtual void abort() = 0;
@@ -72,6 +80,9 @@ public:
qint64 readBufferSize() const;
virtual void setReadBufferSize(qint64 size);
+ virtual TransferError error() const = 0;
+ virtual QString errorString() const = 0;
+
signals:
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
void finished(QBluetoothTransferReply *);