diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-09-29 20:21:01 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-09-29 20:21:01 (GMT) |
commit | eb25d910e7991503eaa74233f0b396648f512e88 (patch) | |
tree | caeb9c22e97991be73235285c53fc93197a5eebb /Swiften/FileTransfer/IBBSendSession.h | |
parent | bea648fcd6bce4f0d7f19725f60e5b2b3ef0a340 (diff) | |
download | swift-contrib-eb25d910e7991503eaa74233f0b396648f512e88.zip swift-contrib-eb25d910e7991503eaa74233f0b396648f512e88.tar.bz2 |
Allow ReadBytestreams to be resumed.
Diffstat (limited to 'Swiften/FileTransfer/IBBSendSession.h')
-rw-r--r-- | Swiften/FileTransfer/IBBSendSession.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/FileTransfer/IBBSendSession.h b/Swiften/FileTransfer/IBBSendSession.h index 8e5ace1..abd217b 100644 --- a/Swiften/FileTransfer/IBBSendSession.h +++ b/Swiften/FileTransfer/IBBSendSession.h @@ -41,9 +41,12 @@ namespace Swift { boost::signal<void (boost::optional<FileTransferError>)> onFinished; boost::signal<void (int)> onBytesSent; + private: void handleIBBResponse(IBB::ref, ErrorPayload::ref); void finish(boost::optional<FileTransferError>); + void sendMoreData(); + void handleDataAvailable(); private: std::string id; @@ -54,5 +57,6 @@ namespace Swift { int blockSize; int sequenceNumber; bool active; + bool waitingForData; }; } |