diff options
author | Andrew Stanley-Jones <andrew.stanley-jones@nokia.com> | 2010-12-03 17:18:48 +1000 |
---|---|---|
committer | Andrew Stanley-Jones <andrew.stanley-jones@nokia.com> | 2010-12-03 17:18:48 +1000 |
commit | d028a0def380a08a91ab8ec9179e04e796fb1d27 (patch) | |
tree | 41b064edcfae47aa738a942eca99359b16573a70 /src/connectivity/bluetooth/qbluetoothtransferreply.h | |
parent | f3f1e9e3dc3db2e4256853a7734750bf55b6271d (diff) |
Add Bluetooth initial bluez OPP backend
Diffstat (limited to 'src/connectivity/bluetooth/qbluetoothtransferreply.h')
-rw-r--r-- | src/connectivity/bluetooth/qbluetoothtransferreply.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/connectivity/bluetooth/qbluetoothtransferreply.h b/src/connectivity/bluetooth/qbluetoothtransferreply.h index 917938a7f0..575bcf6340 100644 --- a/src/connectivity/bluetooth/qbluetoothtransferreply.h +++ b/src/connectivity/bluetooth/qbluetoothtransferreply.h @@ -60,27 +60,38 @@ public: virtual void abort() = 0; QVariant attribute(QBluetoothTransferRequest::Attribute code) const; - bool isFinished() const; - bool isRunning() const; + virtual bool isFinished() const = 0; + virtual bool isRunning() const = 0; QBluetoothTransferManager *manager() const; QBluetoothTransferManager::Operation operation() const; - QBluetoothTransferRequest request() const; +// QBluetoothTransferRequest request() const; qint64 readBufferSize() const; virtual void setReadBufferSize(qint64 size); signals: void downloadProgress(qint64 bytesReceived, qint64 bytesTotal); - void finished(); + void finished(QBluetoothTransferReply *); void uploadProgress(qint64 bytesSent, qint64 bytesTotal); protected: explicit QBluetoothTransferReply(QObject *parent = 0); void setAttribute(QBluetoothTransferRequest::Attribute code, const QVariant &value); void setOperation(QBluetoothTransferManager::Operation operation); + void setManager(QBluetoothTransferManager &manager); +// void setRequest(QBluetoothTransferRequest *request); + +private: + QBluetoothTransferManager *m_manager; + QBluetoothTransferManager::Operation m_operation; + QMap<int, QVariant> m_attributes; +// QBluetoothTransferRequest *m_request; + qint64 m_buffersize; + + }; QTM_END_NAMESPACE |